Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: not2easy
how do you alter how large the line break is between something like <h1> and whatever comes after it? My design is leaving too much space between the heading element and the element below it. I attempted to change line-height value of the <h1> tag, but that didn't work.
If you are talking about the vertical space between the H1 and the line below it, then the following should do the trick:
The default for H1 tags is about a 21px margin, you can set this to whatever you want.
But apparently, it is not.
Thanks for your help, both'uh'yous!
One key is that both an element and its following element may already have default margins, so you may need to override BOTH the margin-bottom for the first element and the margin-top for the following element.Otherwise the margin collapsing rules that browsers use will still apply the larger of those two margins.