www.webdeveloper.com
Results 1 to 4 of 4

Thread: get rid of padding on <hr />

  1. #1
    Join Date
    Jun 2004
    Posts
    84

    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 />.

    http://www.mystupidcrap.com/scott/new2.php

  2. #2
    Join Date
    Jul 2003
    Location
    New York City
    Posts
    2,771
    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
    Location
    Alabama, United States
    Posts
    836

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,224
    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