Previous Message
Next Message

Re: Two DIVs on one line?

Sent by Gary Ross on 9 January 2005 12:12


>
>> Is it possible to position two DIVs on one single line? [...]
>
> You can either make them inline elements (display: inline) or float
> the first one or both (float: left).

Bear in mind that if you do 'display: inline', it is no longer the 
box-model but the inline model. So you'll find you can't control width 
and height in the same way. For this reason, many people when looking 
for inline divs that have all the control of the box-model use 'float'. 
There is in fact an 'inline-box' (sp?) alternative but it is not well 
supported.

Gary

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: