PDA

View Full Version : Second line of text wont indent


Mad Mike
12-02-2010, 02:49 PM
I have a css style set up with 8px of left padding for my product description...it works fine for the first line but not the second, and so on...Can any come up with a fix? The link is below.

http://www.educatorworksheets.com/Test/test

Corrosive
12-02-2010, 03:03 PM
Try adding display:block; to the CSS style. See what that does.

Corrosive
12-02-2010, 03:10 PM
Or you could use a div rather than a span.

Mad Mike
12-02-2010, 03:18 PM
The display block worked...thanks! What did that actually do? Just trying to get and unsderstanding...

Corrosive
12-02-2010, 03:22 PM
A span tag is what we call an 'inline' element meaning that it has no real structure in its natural form. Adding display:block; overrides that so that the span acts more like a div which is naturally a block element. Make sense?