Forum Moderators: not2easy

Message Too Old, No Replies

Keep DIV Inline

Dividers display below last element.

         

SynergyWD

9:41 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



How do I keep a DIV tag with a CSS class attached on the same line as another DIV tag? They keep showing up below the last object. (HTML or CSS help will work. )

photon

1:30 am on Sep 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can add
display:inline;
in the CSS for the div.

createErrorMsg

12:05 pm on Sep 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Another option is to float the divs. Display:inline may have some consequences you don't want (for instance, the validator won't let you put block level elements inside of an inline element, meaning an inline div can't contain any paragraphs, nested divs, etc.)