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.
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.
Last edited by marain; 03-02-2016 at 07:38 PM.
Hi Alan,
You can adjust the default margin and line-height of headings by fiddling with these values;
Or you can target the top and bottom margins separately by using 'margin:top' and 'margin-bottom'Code:h1 { line-height:1.25; margin:0.25em } h2 { line-height:1; margin:0 }
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
marain (03-11-2016)
Bev,
Fiddling did, problem solved. Thank you!
A.
Bookmarks