Hi, all...
I'm new to trying to do things with CSS...considering
using CSS instead of tables and seeing what can be done.
I'm trying to line up two DIV boxes horizontally. Instead,
they are still vertical...
What am I doing wrong?
UL Style=display: inline-block;
You have nothing set on the li elements to tell them to stack
horizontally. You set display: inline-block on the ul, but the items
inside the ul will stack as normal, which is vertically.
Setting the display property on the ul will force it to sit
horizontally with other block-level elements
Monday, September 12, 2005, 12:58:29 PM, Rick Faircloth wrote:
I'm trying to line up two DIV boxes horizontally. Instead,
Sounds like you basically want a 2-column layout, minus the header/footer.
You don't say what content will go in these boxes, so I'm assuming they
should expand as
PROTECTED]
Cc: css-discuss
Subject: Re: [css-d] New to CSS...Why isn't this horizontal?
You have nothing set on the li elements to tell them to stack
horizontally. You set display: inline-block on the ul, but the items
inside the ul will stack as normal, which is vertically.
Setting the display
Monday, September 12, 2005, 2:17:47 PM, Rick Faircloth wrote:
I guess, by your comments, that DIV's need to have a float
characteristic to be expandable according to content?
Float-based layouts are typically more flexible than absolute positioning
at least. Floated elements remain in the