Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 04-11-2007, 08:21 AM Div Background Image
Ultra Talker

Posts: 316
Trades: 0
http://londonlabs.co.uk/test/

I have set a background image for my page using this CSS:
Code:
body {
    background-image: url(images/bg-new.JPG);
    background-repeat: repeat;
    background-color: #00CCFF;
    background-attachment: fixed;
    margin: 0px;
    padding: 0px;
    height:100%;
This image is a small square that is tiled over the whole page.

I have a DIV that has a background image which has been set using this CSS:
Code:
#bg {
    background-image: url(images/splash.gif);
    background-repeat: repeat-x;
    background-attachment: fixed;
    height:600px;
    width: 1990x;
}
This image is the image with the paint splash and bit of text.

In IE6 when I scrol the page down the background image of the bg DIV isnt fixed - I would like it to be.

If FF1.5 the background image of the bg DIV is fixed but when I scrol the background image of the body seems to overlap it.

Is there any way to make the big image that is used by 'bg' fixed but not be covered by the body background image when scrolling down the page?

Thanks.
Joe3000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-11-2007, 02:38 PM Re: Div Background Image
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
In IE6 when I scrol the page down the background image of the bg DIV isnt fixed - I would like it to be.
Unfortunately, you can't. IE6 does NOT support position: fixed.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 06:32 AM Re: Div Background Image
Ultra Talker

Posts: 316
Trades: 0
Thats a shame.

Thanks.
Joe3000 is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 11:24 AM Re: Div Background Image
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
There is a hack for it (allegedly...I haven't tried it yet):

http://tagsoup.com/cookbook/css/fixed/
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Div Background Image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21374 seconds with 12 queries