Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Removing space around <h4> tags...

    Well first off, in my nav pane, I am using <h4> elements to organize the links a little more. Such as put a <h4> tag in, and then my list underneath, then another <h4> tag. In FireFox, the h4 tag looks normal, but in IE, the header looks about twice the size bigger. Any reason for this?

    And my main question is, the <li>'s are spaced evenly, but the <h4>'s have this huge space underneath them. Is there a way to get rid of the space surrounding header elements?.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes you need to use CSS
    Code:
    <style type="text/css">
    h4 {
    margin:0;
    padding:0;
    }
    </style>
    That goes in your head tags. Why are you using headers for you links? Trying to make them stick out to SE's?

  • #3
    New Coder
    Join Date
    May 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. That worked. I'm not using the headers for my links. I am using them just to separate the list of links. Kind of like a general description of the links.

    i.e.

    <h4>Company Information</h4>
    <ul>
    <li>Managers Schedule</li>
    <li>Clients in Office</li>
    </ul>

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Okay gotcha. Glad that worked.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •