Forum Moderators: not2easy

Message Too Old, No Replies

How to Make Tabbed List with CSS?

         

pab1953

7:56 pm on May 7, 2008 (gmt 0)

10+ Year Member



I need to make a two-column list using CSS, e.g.:

---- ----
---- ----
---- ----
---- ----

How do I align the right-hand column without using tables?

Thanks.

Marshall

9:46 pm on May 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Align in what sense? If you are talking about making them the same length regardless of content, forget it unless you set the height. If you are talking about two columns side-by-side, you need to float them:

#div1 {
width: 400px; /* a width must be assigned */
float: left;
}
#div2 {
width: 400px; /* a width must be assigned */
float: left;
}

HTML

<div id="div1">text text text</div>
<div id="div2">text text text</div>

Marshall