3 replies [Last post]
benny
Offline
Enthusiast
Last seen: 13 years 6 weeks ago
Joined: 2004-08-24
Posts: 64
Points: 0

Hi!

i have to lists, and i want them to be side by side..

it should look something like that:

point1.......point2
...blalba....bliblibli
...blalba....bliblibli
...blalba....bliblibli

Tables are a solution of course, but i want to know if there's away to do it with CSS.
Thank ya very much,
greets
Ben

co2
co2's picture
Offline
Leader
UK
Last seen: 12 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

2 lists side by side

You can float your <ul>'s.

In your CSS use something like:

ul#left
{
float: left;
/* rest of ul CSS here */
}

You can either float the other list to the left or right, or not at all (becasue the first will float). Have a go at experimenting and let us know.

Smile

The next sentence is true. The previous sentence is false. Discuss...

benny
Offline
Enthusiast
Last seen: 13 years 6 weeks ago
Joined: 2004-08-24
Posts: 64
Points: 0

2 lists side by side

Thx a lot!
i floated both UL's to the left - that was it !

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 6 years 39 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

2 lists side by side

benny,
Are those two lists related to one another? If so, thats the appropiate place to use a table - for tabular data. If not, ignore this :?