Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Line spacing of Header Tags

Status
Not open for further replies.

lostAndConfused

Programmer
May 1, 2002
7
US
In effort to make our pages ADA compliant, we are talking about using header tags in our pages for titles/subtitles. Normally, I would just assign a CSS and use it within a <span> tag for each title section. This week I learned that screen readers work better when <hx> tags are used. Not a problem, but I don't like the blank line between the header and the text.

Here's my question... anyone know of a way to change the line spacing on these tags to eliminate the extra line after the text? I've tried everything I can think of. Can change the text appearance, just not the vertical spacing.

Thanks!
 
When in doubt, use:
Code:
<style type="text/css">
h1, h2, h3, h4, h5, h6
{	margin: 0px;
	padding: 0px;
}
</style>
... or set padding/margin to values you prefer.
 
Wow! My hero!!! And darn quick, too!

Works like a charm. Thanks!

Laurie :->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top