Safari CSS Hack

Discussion in 'HTML & Website Design' started by pcdoc, Aug 4, 2007.

  1. #1
    This hack

    http://themechanism.com/blog/2007/03/28/safari-css-hack/

    no longer seems to work on the latest version of Safari (3.0.2) MS Version.

    Anyone found a reliable routine to detect Safari for the purpose of substituting CSS commands (singularly or entire stylesheet); e.g.,

    margin-left:

    which renders differently for IE, Firefox, Opera and Safari.

    tnx
     
    pcdoc, Aug 4, 2007 IP
    wiidbz likes this.
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Code to the standards. Seriously. Safari shouldn't need hacks. Different code perhaps (that's also fed to the other browsers) but not hacks.

    I had to do this yesterday with a client's site (I had a left and right border applied to the body of a Web page, and both IE 7 and Safari choked on it; moving the borders to the #container DIV I was using to give the page a 100% minimum height, then increasing the width of the body selector to adjust for the border did the trick - no hacking was needed).
     
    Dan Schulz, Aug 4, 2007 IP