CSS and horizontal rules

Discussion in 'Web Design and Development (archive)' started by brianellisrules, Jan 1, 2004.

  1. macrumors regular

    Joined:
    Oct 17, 2003
    #1
    Howdy folks.

    My page isn't displaying properly on Safari browsers. My horizontal rules are all left aligned (when on every other browser, they're center aligned).

    Here's the code from my CSS:
    hr {text-align: center; margin-top: 0; margin-bottom: 5px; }

    (I've also tried align: center; but that doesn't seem to work either).

    Here's an example:
    http://www.brianellisrules.com/archives.php?id=A2003121

    the page views properly on IE and Mozilla on Windows... but this is my first time checking it out on Safari and it's bugging me.

    Any ideas? My initial guess is that it's inheriting some rules from my other tags, but wouldn't having the CSS align it to the center override that? My other guess is that my CSS code is wrong. What do youn's think?

    Thanks!
     
  2. macrumors member

    fugeelama

    Joined:
    Oct 23, 2002
    #2
    you could always try using hr align="center" in the actual tag...
     
  3. thread starter macrumors regular

    Joined:
    Oct 17, 2003
    #3
    True dat, true dat.

    But since I have a bunch of hr's floating around my webpage, that's a lot of align="center"s I'd need to add... which sort of defeats the purpose of CSS... right?
     
  4. macrumors 65816

    mrjamin

    Joined:
    Feb 6, 2003
    Location:
    Strongbadia
    #4
  5. thread starter macrumors regular

    Joined:
    Oct 17, 2003
    #5
  6. macrumors 65816

    mrjamin

    Joined:
    Feb 6, 2003
    Location:
    Strongbadia
    #6
    its been fixed in the latest webcore builds which are supposed to make their way into safari 1.2 - have a look on macrumors page 2 and follow the link in there for more info on fixes
     
  7. macrumors 65816

    mrjamin

    Joined:
    Feb 6, 2003
    Location:
    Strongbadia
    #7
    its been fixed in the latest webcore builds which are supposed to make their way into safari 1.2 - have a look on macrumors page 2 and follow the link in there for more info on fixes
     

Share This Page