[thelist] CSS: inline vs block
Chris Evans
chris at fuseware.com
Thu Nov 7 10:57:01 CST 2002
I'm running into an issue with CSS, and I think it may be a lack of
understanding on my part. What I am trying to do is create a
"formLabel" class of a standard width, followed by a form field on the
same line.
If I use a div( block element?) the width is set, but I get a line break
after the div. If I use a span ( inline element?), the width is not
set, though I don't get my line break.
This is my current style:
.formLabel {
width: 200px;
font-weight: bold;
margin:0px 0px 25px 0px;
padding: 0px 0px 25px 0px;
}
Is there a way to get an element to have a fixed width without a line break?
--
Chris Evans
chris at fuseware.com
http://www.fuseware.com
More information about the thelist
mailing list