Results 1 to 4 of 4

Thread: get rid of padding on <hr />

  1. #1
    Join Date
    Jun 2004

    get rid of padding on <hr />

    I am useing a <hr /> in my design, but for some reason there is a margin or padding on top and bottom that i cant get rid of with css. I have searched on google for this and I found a bunch of people with the same problem, but none of them figured it out. Is it possible to get rid of the padding on the <hr />.


  2. #2
    Join Date
    Jul 2003
    New York City
    That's do to IE's crappieness. You could try removing padding/margin for your subheader, that may work. If not, you could always just make a bottom border for your <h2> which would give the same affect.

  3. #3
    Join Date
    Jan 2004
    Alabama, United States
    MstrBob is right.

    IE has extremely limited support for styling HR's. I would go with his suggestion of adding a bottom border to your header

  4. #4
    Join Date
    Nov 2002
    Auburn, AL
    Black dragon, when I made the box thing I nested a div then used the top and bottom border because it gave me a little more control. Its not as pretty aesthetically but it will do what you want.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles