Previous Message
Next Message

RE: [css-d] Creating Adjacent Divs

Sent by Alan K. Gay on 9 December 2002 04:04


Based on some reason learnings of my own courtesy of big john, I would
say use float unless you want the side-by-side divs to extend
horizontally beyond the width of the screen (ie cause horizontal
scrolling), in which case you need to forget the float and use
diplay:inline for your divs and place them in an enclosing div that has
white-space:nowrap.  The effect is very similar to a table that keeps
expanding as more columns are added.   The only downside is all the
inline divs will assume the height of the largest div (again, very
table-like). In my case, I wanted that to happen anyhow, and so this
saves me some js to find the max height of the family of divs and set
all the heights accordingly.


_______________________________________________
css-discuss [EMAIL-REMOVED]]
http://two.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning
Previous Message
Next Message

Message thread: