IE scrollbars shifting placement of centered background image!
January 26, 2009 9:11 PM
Subscribe
CSSfilter: Explorer's scroll bars shift
my design's centered background image
up or
down by about ten pixels when the browser width is less than 880 pixels wide (in other words, on a laptop). Arrgh! It should look like
this. Is there a better way to force a centered background image to really be CENTERED?!?
I'm redesigning my portfolio. The new design is based on an 880px by 420px block (a div). Inside that div are other divs being slid into place when a link is clicked. I'm using a background image to add a 5px black outline and shadow effect around the 880x420 block...
...but IE is screwing up the placement of the background outline/shadow when a bottom scrollbar first appears.
The issue might be that, for whatever reason, IE is adjusting the placement of the background image but not the placement of the div when the scrollbars appear? Or vice versa. Either way, it makes the design look like crap when it happens, so I need to find a fix!
I'm centering the background image in the body section of my css. It works perfectly everywhere except in IE when the viewable browser space is right around 880 px, which seems to happen a lot in laptops.
Any tips or tricks here? Got a fix? I'm at a loss!
Just for the record, I'm a Mac guy and am borrowing a friend's laptop for testing purposes. Coding by hand.
posted by 2oh1 to computers & internet (9 comments total)
1 user marked this as a favorite
But again, my expertise mostly lies outside of CSS.
posted by Deathalicious at 9:46 PM on January 26