Forum Moderators: not2easy

Message Too Old, No Replies

CSS: Alternatives to Line Spacing?

Can't get line spacing to work...

         

cornflake

9:32 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



What would be another way of controlling line spacing the line-height declaration isn't really working for me.

thank you,
cornflake

D_Blackwell

11:28 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would start with looking at why the line-height declaration is not working as expected.

You can always go back to throwing in a few extra <br />

MonkeeSage

11:44 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think IE supports the line-height property correctly, but Mozilla and Opera do. That being the case, you might want to try changing the top / bottom margins (or padding) instead, since IE understands those as well as Mozilla and Opera.

margin: top[unit] right[unit] bottom[unit] left[unit];

E.g., margin: 0px 2px 10px 2px;

The padding shorthand takes the same syntax as margin.

Jordan