dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: CSS Mystery Pixel Width offset in Safari

  1. #1
    Join Date
    Nov 2005
    Posts
    52

    CSS Mystery Pixel Width offset in Safari

    Hey,

    Can someone check this out. I've got a typical fixed width centered deal going on here but in Safari it's 1 pixel off on the right every other pixel. Just look at the top right and minimize and expand the width of Safari to see what I'm referring to.
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Posts
    52
    any ideas on this one?

  3. #3
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    No. I don't use Safari. I did glance at your image attachment last night though, -and I still can't figure out what you're talking about. What I saw doesn't fit how you described the problem...

    It would help immensely if you posted your code and then yeah, -I'd be like O.J. Simpson... -I'd take a stab at it.

  4. #4
    Join Date
    Nov 2005
    Posts
    52
    The code is in the attatchment.

  5. #5
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    Viewed source and downloaded, -I still can't quite understand what you're seeing. I guess that it's the differance between Safari/MAC and pc.
    I am questioning this, however:

    body {margin: 0; padding: 0; border:0;/* I added this, -might be useful */
    background: #000 url(bg_02z1.gif) top center;
    }

    (etc.)
    <body id="home">

    -What's the point of having selectors in the STYLE's "body" tag and then creating a DIV also called "body" and declaring id selectors for that? It's like those mind-altering logic tests that go in part "rachets are widgets and some widgets are sockets but no sockets are rachets", you know?
    It just looks to me as if you are creating confusion, and if any selector in "id=home" disagrees with any selector in your STYLE's 'body', -that 'body' selector will be ignored or overridden by 'home' (as it occurs closer to the DIV being styled).
    But that aside, I don't see the issue you cite.
    You cite "1 pixel off"? Sounds like a mystery border complaint. I know forinstance, that earlier versions of Netscape had issue with the width of the scrollbar being part of the total width of a centered page... (the width of a scrollbar is what, -20 pixels?). Maybe this is a Safari-only thing...
    Last edited by WebJoel; 06-03-2006 at 01:41 PM.

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