Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Can CSS do this?

Reply
Thread Tools

Can CSS do this?

 
 
yesthatmcgurk@gmail.com
Guest
Posts: n/a
 
      04-12-2006
Can someone show me the equivalent in CSS, and explain how it is better
(not meaning to sound trollish; just interested):

<table id="iCantDoThisEasilyWithCSS" width=100% height=100%>
<tr>
<td width=50% align=left>Stuff all kinds of neat junk in here,
like controls and such</td>
<td width=auto align=right>More stuff, crammed over on the
right hand side</td>
</tr>
</table>

This works in all browsers and can be nested inside of div's and other
tables without wierdness happening. I tried to do this with a floating
div, but the damn thing wouldn't work like I expected (

 
Reply With Quote
 
 
 
 
Mike Scirocco
Guest
Posts: n/a
 
      04-12-2006
wrote:
> Can someone show me the equivalent in CSS, and explain how it is better
> (not meaning to sound trollish; just interested):
>
> <table id="iCantDoThisEasilyWithCSS" width=100% height=100%>
> <tr>
> <td width=50% align=left>Stuff all kinds of neat junk in here,
> like controls and such</td>
> <td width=auto align=right>More stuff, crammed over on the
> right hand side</td>
> </tr>
> </table>
>
> This works in all browsers and can be nested inside of div's and other
> tables without wierdness happening. I tried to do this with a floating
> div, but the damn thing wouldn't work like I expected (


Post your code minus the content.
 
Reply With Quote
 
 
 
 
yesthatmcgurk@gmail.com
Guest
Posts: n/a
 
      04-12-2006
? This is what I'm looking for an equivalent in CSS for. I've got
about ten aborted attempts in CSS, none of which behaved well. I wiped
it all out and went back to the table layout because I can't spend more
time on it...

<table width=100% height=100%>
<tr>
<td width=50% align=left></td>
<td width=auto align=right></td>
</tr>
</table>

 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-12-2006
In article
< .com>,
wrote:

> Can someone show me the equivalent in CSS, and explain how it is better
> (not meaning to sound trollish; just interested):
>
> <table id="iCantDoThisEasilyWithCSS" width=100% height=100%>
> <tr>
> <td width=50% align=left>Stuff all kinds of neat junk in here,
> like controls and such</td>
> <td width=auto align=right>More stuff, crammed over on the
> right hand side</td>
> </tr>
> </table>
>
> This works in all browsers and can be nested inside of div's and other
> tables without wierdness happening. I tried to do this with a floating
> div, but the damn thing wouldn't work like I expected (


What is the id for?

Anyway, no, you won't be able to do this without weirdness
happening for you as you adapt any suggestion in css to your
needs. CSS is essentially weird and you will need to delve into
the black magic to control it and make it produce reasonable
effects in most browsers. A magician could teach you to mimic
just one part of his act but when the curtain goes up and the
lights beam down on you, you need more to steady your trembling
knees.

Why not start with a very readable

http://www.w3.org/MarkUp/Guide/Style

and/or

http://www.htmldog.com/guides/htmlbeginner/

--
dorayme
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      04-14-2006
yesthatmcgurk wrote:

> <table width=100% height=100%>
> <tr>
> <td width=50% align=left></td>
> <td width=auto align=right></td>
> </tr>
> </table>


<div class=c-wrapper>
<div class=c-right>Content here</div>
<div class=c-left>Navigation here</div>
<br class=c-clear>
</div>

DIV.c-wrapper {
position: relative;
}

DIV.c-wrapper DIV.c-right {
width: 65%;
float: right;
margin-right: 2%;
}

DIV.c-wrapper DIV.c-left {
width: 30%;
float: right;
margin-right: 1%;
}

DIV.c-wrapper BR.c-clear {
clear: right;
}

e.g.
http://examples.tobyinkster.co.uk/2col

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS question - can I make CSS Cascade sideways? Bill_W_Stephens@yahoo.com HTML 6 03-18-2006 06:02 PM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
print.css and screen.css tom watson HTML 1 09-09-2003 02:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57