![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have the following list: ol li>Item 1</li li>Item 2</li li>Item 3</li li>Item 4</li li>Item 5</li ol What is the best way to display the list items in two columns? I need the list to be 600 px and the width divided equally by the two columns. Thank You, Miguel |
#3
| |||
| |||
|
|
Hello, I have the following list: ol li>Item 1</li li>Item 2</li li>Item 3</li li>Item 4</li li>Item 5</li ol What is the best way to display the list items in two columns? I need the list to be 600 px and the width divided equally by the two columns. |
#4
| |||
| |||
|
|
What is the best way to display the list items in two columns? I need the list to be 600 px and the width divided equally by the two columns. http://dorayme.netweaver.com.au/lists/listsSideBySide.html |
#5
| |||
| |||
|
|
dorayme wrote: What is the best way to display the list items in two columns? I need the list to be 600 px and the width divided equally by the two columns. http://dorayme.netweaver.com.au/lists/listsSideBySide.html I'm underwhelmed: on my IE 8 and well as on FF3, both columns are 600px, for a total of 1200px. Was that how you interpreted the question? Halving the numbers, I seem to get the desired effect. However, the markup contains two lists, not one. If you can change the markup that way, it's such an easy job (and you could even do without CSS, using just good old layout table). If effect, you're putting two elements side by side. It's coincidental that the elements happen to be list - but I think the question was specifically about styling _one_ list. (I don't have any CSS answer. I would probably consider using JavaScript that splits the list.) |
#6
| |||
| |||
|
|
Whats with tables on this? float: left with a width works fine. |
|
You can alternate items, if you wish. Since this uses inline-block it will not work in IE6, not sure about IE7 and 8. |
#7
| |||
| |||
|
|
I see no need in this example to wrap the ul in a div, class could be directly applied to ul. |
#8
| |||
| |||
|
|
In article <20090701143811.296558fc (AT) bootnic (DOT) eternal-september.org>, BootNic <bootnic.bounce (AT) gmail (DOT) com> wrote: I see no need in this example to wrap the ul in a div, class could be directly applied to ul. In the case of ULs and OLs, it is trickier to set the CSS without DIVs (the reason I used DIVS in my example earlier in thread) because the margins and paddings differe rather among browsers and all are sensitive re the showing of bullets and numbers... Not that it can't be done at all. |
![]() |
| Thread Tools | |
| Display Modes | |
| |