Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Centering Background Vertical Tile Pixel Problem in IE

    I've actually come across this problem once before but just ignored it and went forward. But this time it's kinda pissing me off haha.

    So here goes.

    http://www.aramiinteractive.com/silv...demo/test.html

    when viewed in IE sometimes the image I have layers properly over the background image i have tiled vertically in the body tag. HOWEVER when u change the browser size around you will notice that the background will move over to the right 1 pixel. This does not occur in firefox.

    What is the deal with this? I really cannot understand. It seems IE has a problem centering the background correctly depending on how many pixels across the browser size is? Has anybody else encountered this? If so is there a fix?

    I know it's only 1 pixel but hey I'm a designer and that ONE pixel does make a big difference. LOL

  • #2
    Regular Coder
    Join Date
    Jan 2008
    Location
    Geneva, Switzerland
    Posts
    413
    Thanks
    12
    Thanked 29 Times in 29 Posts
    Posting your html code and css would probably help people reply to your post...

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello edoky145,
    I get it too. 1px over.
    The first time I looked at this it didn't happen to me so I left. Now I see that I can make it go away just by sizing the browser a little...
    So, I even downloaded it and played around with it here locally. I thouht if I got rid of your relative positioning and floated the links in #header it would cure it but it doesn't.

    Here is an explanation.

    If you were to put /bg.gif as the background of #container this would not happen but I understand why you want it on the body. For a different full height approach, have a look at this example.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    edoky145 (01-07-2008)

  • #4
    New Coder
    Join Date
    Apr 2007
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts
    wow I got it to work. It look a little fiddling but it works. Stupid IE. Eh I guess if it wasn't for microsoft we all wouldn't have jobs eh?

    I've tried the full height approach before put I couldn't get the background to extend all the way to the bottom all the time. What I mean is...if you started and the whole page height fit in the browser then it was fine. However if you closed up the window so that you would get a browser scrollbar when u scrolled down the background would disappear.

    For ie. www.elliottlabs.com (another one I coded and couldn't get it quite right but I guess the client never noticed haha. )

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    http://www.aramiinteractive.com/silv...demo/test.html is looking better.
    You should check the validator.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    New Coder
    Join Date
    Oct 2004
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So is there a reasonable fix for this problem without using the fixes the article Excavator posted? I'd really like to leave my background containers at 100% width so the browser is scalable to the main content area. Any suggestions?

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Nope. Its still an issue.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •