PDA

View Full Version : CSS line problem?



skyvia
07 Mar 2011, 12:19 AM
How do I fix the line height in css. i.e. I have a header, under it (with very litle space between the lines) I want a text. Rosetta Stone Spanish[/URL]The header is a H1 and the text under is unspecified, but the font size differ.

resdog
07 Mar 2011, 07:13 AM
If you have two elements (an h1 and another underneath), it isn't line height is that's your problem, it's margin. Since paragraph elements are normally block elements, you will need to address the margin property.



h1 {
margin-bottom: 10px;
}