Posted June 6 '09 at 11:03 AM
Posts: 145
hello,
I have two
</br>
</br>
but i dont lke the spacing betwene two lines of text under each other. Th espace between two lines is too much. How can I reduce the space between two lines of text? I tried <p> but it is even worse, more space...I am trying to reduce spacing between two lines of text...more than one </br> but less than two </br>
such as:
line of text 1
line of text 2
so, how can I adjust the spacing between these two lines precisely as I like?
If the two lines are in fact paragraphs, then use the <p> tag. If the space is too much (and this is something most people probably do anyay), set the margin and padding to 0 in your css. Some do it in the body{} declaration, I use the *selector at the start of my CSS. That also helps your page start off appearing the same in all browsers, along with making it so you can position everything exactly how you want it.
Many people use massive resets; I have found the margin:0; padding:0; works just fine for me.
Then you will want to set your line-height to get just the space you want.
Semantic, Valid, and Accessible Design!