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. :cool:

One Response to Header Tags Without the Extra Space

  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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.