PDA

View Full Version : line height with <hr>


Glenwf
03-17-2003, 09:07 PM
Is it possible to reduce the vertical space a <hr> takes when dividing sections of text?

Thanks in advance 'cause I know you can do it....

whitty
03-17-2003, 09:27 PM
Well using styles you can control it by using the padding option

hr {
margin-bottom : -4px;
margin-top : -4px;
}


From playing around with it, it seems that if you're trying to get the text as close as possible to it, it stops at -4px. However if you want a bigger gap between the hr and the text that's no problem.

cg9com
03-18-2003, 04:23 PM
shorthand:

margin:-4px 0px -4px 0px;

:D