Log in

View Full Version : Resolved <h1> /<h2> gap



marain
03-02-2016, 06:15 PM
Hi Folks,

Is there a way to reduce the amount of vertical separation between text on <h1> lines and text on immediately-following <h2>lines? See, for example, http://www.njdriverslicenses.com/ .

Thanks,

A.

Beverleyh
03-02-2016, 06:44 PM
Hi Alan,

You can adjust the default margin and line-height of headings by fiddling with these values;


h1 { line-height:1.25; margin:0.25em }
h2 { line-height:1; margin:0 }


Or you can target the top and bottom margins separately by using 'margin:top' and 'margin-bottom'

marain
03-02-2016, 07:39 PM
Bev,

Fiddling did, problem solved. Thank you!

A.