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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<h1> tag 1

Status
Not open for further replies.

mistergrady

Technical User
Jun 27, 2007
8
CA
I am using DW heading tags e.g. <h1> rather than making my own. However, they generate a unwanted blank row after each tag.

For example:

<h1 align="left">Home</h1>
<h2 align="left">Welcome</h2>

Generates:

Home

Welcome

Whereas I want it to generate it:

Home
Welcome

I can't see anything in the properties to adjust to remove the extra line. Maybe it's hard coded into the tag? Any comments/suggestions appreciated.
 
There are default padding and margins around header tags and most other tags (and it varies among the browsers).

You may want to use css to adjust it. One way:
Code:
<style type="text/css">
<!--
h1, h2, h3, h4, h5, h6 {
margin: 0px;
padding: 0px;
}
-->
</style>

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
That's great --problem solved. Once I figured out how it worked, I went to properties and made custom changes to each individual tag.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top