Main Content

Header Tags Without the Extra Space

Have you ever put in a header tag (h1, h2, h3, h4, h5, h6) and struggle to get rid of the extra space underneath the tag? I do this all the time and I finally found the cure today. To get a header tag to be inline with the rest of the HTML code, just add display:inline to your stylesheet. It’s a simple as that. Now your header tag won’t have all that extra space after it and it can blend in nicely. 😎

1 Response

  1. stephen says:

    i guess this would work for any block level element, sometimes i forget you can chage elements to be inline.

Leave a Reply