On 5/31/06, Santiago Restrepo <[EMAIL PROTECTED]> wrote:
> Hi:
>
> This is a really simple question. What kind of properties do I have to give
> a div to make it behave like a imag.
>
> What I mean is that, when you add a images to a text, the keep going with
> the line until you give a <br />. But the <div> keeps positioning one under
> another. Is there any way that i can add divs and they display in the same
> line?

This is simple:

div { display:inline; } // inline is the default display formatting for img

... of course, when you do this, you pretty much defeat the whole
point of having a div. Would you be better off with a span? It's like
a div, but it's inline instead of block.
-- 
-- 
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to