Forum Moderators: not2easy

Message Too Old, No Replies

One column for small windows, two columns for large windows

How is this accomplished?

         

waldemar

10:58 am on Jul 5, 2003 (gmt 0)

10+ Year Member



Well the title kind of explains it already...

I have a <UL> list with rather short entries and would like it to stretch to two columns if the browser window is large enough... What would a wrapper DIV look like?

(This problem must have been discussed before (?), but I couldn't find any hints here yet; could somebody pleease point me to a thread if it exists?)

Longhaired Genius

1:01 pm on Jul 5, 2003 (gmt 0)

10+ Year Member



You can probably set things up so this happens automatically. You would need to have two lists, give them both an appropriate width in ems, give them both the property "float: left". In a wide window they should sit side by side and in a narrow window they should sit one above the other. I haven't actually tried this but this is where I'd start. Let us know if you try it and it works.

DrDoc

9:04 pm on Jul 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A recent discussion on the topic: [webmasterworld.com...]

waldemar

9:04 am on Jul 6, 2003 (gmt 0)

10+ Year Member



Hey guys, thanks a lot! ... I'm staying with that other thread now... [webmasterworld.com...]