Announcement

Collapse
No announcement yet.

Stupid IE and the <hr /> tag?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stupid IE and the <hr /> tag?

    Anybody know how to fix the "box" that IE puts around an HR element? I'm using CSS to apply a background image to a design and it works except for that. I've tried setting border: 0 and even applying the same color background to it that matches the color of the background behind it. No go. Any help? Thanks!
    --
    When I buy stickers for folks in prison, I bring milk not backyard meth - it's a prison party!

  • #2
    hmm, I never had that problem. Could you screen shot for us?
    You could also use a div with a "border-bottom:" for css.

    Comment


    • #3
      I've got code to make a normal flat line.
      http://sonspring.com/journal/styling-hr

      Using a background image is... tricky.

      The {color} property controls the rule's color in IE6/7. If your rule has any height to it, you will get a big thick line.

      I had this same problem this week, my final solution was to stick IE6 and 7 with a normal line by setting height to 0 and using padding to push out the background image so other browsers see it right.

      Most people just end up using a div. Sorry I couldnt be any more help. Fortunately IE8 fixes this nonsense.
      Swedish Meatball Pornography

      Comment


      • #4
        Thanks guys. I think for sake of having to reinvent the wheel, I'm just going to scratch the HR tag and go with the old DIV standby. Seems a little easier to make more cross-browser compliant. Thanks for the info guys!
        --
        When I buy stickers for folks in prison, I bring milk not backyard meth - it's a prison party!

        Comment

        Search

        Collapse

        Advertisement

        Collapse

        Latest Topics

        Collapse

        • CobraStrike
          Reply to Playing Cards
          CobraStrike
          the change is nice
          Yesterday, 10:59 PM
        • JofDiamonds
          Reply to Playing Cards
          JofDiamonds
          I've made a few changes to the king, cleaning up lines and adding some motifs taken from the Rouen pattern of playing cards. It's a throw back to some of the original designs.
          ...
          Yesterday, 09:02 PM
        • Watermelon88
          Comment on Struggling with Graphic Design Career
          Watermelon88
          Would you mind if i can get your email so i could send you my portfolio?
          Yesterday, 07:27 PM
        • PrintDriver
          Reply to Trailer Wrap Question
          PrintDriver
          Well, you want to avoid something like this happening:

          ...
          Yesterday, 07:10 PM
        • B
          Reply to Feedback for my college project
          B
          Just another thought...

          Way back in my university design program, the first year was structured around forcing students to abandon their preconceived notions of design and aesthetics. It...
          Yesterday, 07:04 PM

        GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings
        Working...
        X