Fix background image in IE6

This is a discussion on "Fix background image in IE6" within the Web Page Design section. This forum, and the thread "Fix background image in IE6 are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 29th, 2008, 08:28
New Member
Join Date: Jan 2008
Location: Manchester, UK
Age: 27
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Fix background image in IE6

Hiya guys, I have a problem (I will try and explain this as clearly as possible):

I need to layer three different background images onto pages of a website to achieve a graphical effect (3 images oppose to 1 large image for speedy download times).


I decided for one background image I would use the body tag and then apply the other two by using a divs as shown in the attached image.
  1. There is a fade that is repeated vertically on the body tag,
  2. A feathered edged graphic that is not repeated to remove some of the tiled fade at the top of the page,
  3. And another graphic that is the "potdots" to the right.
Here are the styles:

Code: Select all
body{
    background-image: url(/images/fade-tile.jpg);
    background-position: top;
    background-repeat: repeat-y;
    font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 62.5%;
    height: 100%;
}

div#dropshadow-half{
    background-image: url(/images/dropshadow-half.jpg);
    background-position: top;
    background-repeat: no-repeat;    
}

div#dropshadow-half-potdots{
    background-image: url(/images/dropshadow-half-potdots.gif);
    background-repeat: no-repeat;    
    background-position: center;
    width: 100%;
    height:920px;
    margin: 0;
    padding: 0;
}
The problem is that this rendered as in the attached image (layers.jpg) in browsers except for in IE6 which is annoying me.

What happens is, when you change the height of the browser window the potdots move upwards and run into the header graphic (IE6-issue.jpg)

I have tried adding:

Code: Select all
div#dropshadow-half-potdots{
    background-image: url(/images/dropshadow-half-potdots.gif);
    background-repeat: no-repeat;    
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
}
But this does not seem to work. There maybe a very simple solution, but I have lost all objectivity as I have been looking over this for a while now.

Could anyone help please?


Thanks in advance for this!
Attached Images
File Type: jpg layers.jpg (9.1 KB, 14 views)
File Type: jpg IE6-issue.jpg (14.0 KB, 12 views)
Reply With Quote

  #2 (permalink)  
Old Jan 30th, 2008, 11:02
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Fix background image in IE6

I'd need to see either a link or the html portion to be able to tell what is going on.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how they do the background image act like that ? marSoul Webforumz Cafe 11 Nov 10th, 2007 19:18
background image not big enough mykl Web Page Design 7 Oct 11th, 2007 19:08
background image in a div BumbleWeasle Web Page Design 5 Oct 9th, 2006 12:37
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27
Need help with my background image!!! courtjester Web Page Design 3 Sep 30th, 2003 15:25


All times are GMT. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43