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
Two background issues. Help pls
Old 04-27-2010, 04:05 PM Two background issues. Help pls
Junior Talker

Posts: 3
Trades: 0
Hi all,

Im new to this forum and pretty new to css so i hope you guys can help me out a bit.

ok, so on a site i have made i have two divs that have an image each set as their backgrounds (mirrored) one positioned left and one right. background-position: left bottom ; & background-position: right bottom ;

My problem is when the window (browser) is resized the two backgrounds overlap each other making it look like a right mess. I tried using the overflow: hidden; but with no joy.

here is the css for the two divs.

Code:
#back1{
    background-image:url('../images/background2.PNG');
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-position: left bottom ;
    background-attachment: fixed;
    overflow: hidden; 

}
#back2{
    background-image:url('../images/background3.PNG');
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-position: right bottom ;
    overflow: hidden;
}

the second problem i have is with Safari the background divs dont seem to sit at the bottom of the page they look like they hoover about 50+px from the bottom of the page. It seems to be fine in firefox and ie(compatibility mode on)

If any one can help id be very thankful
TheStalker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-27-2010, 04:11 PM Re: Two background issues. Help pls
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
URI needed to debug.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-27-2010, 06:11 PM Re: Two background issues. Help pls
Madman340's Avatar
Web Designer

Posts: 571
Name: Jared
Location: Florida
Trades: 1
Problem 1:
Set the z-index of the one you want to be on top to 1. Note: In order for z-index to work, the "position" attribute must be in use.

Problem 2:
As chris said we will need to know more information such as the URI (Is it XHTML 1.0 Transitional, etc) and if you could please upload it so we can access it and debug it.
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 02:34 PM Re: Two background issues. Help pls
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
There might be a better solution that relying on positioning and the buggy z-index (in IE) for this, but need to see the page.
__________________
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-28-2010, 04:33 PM Re: Two background issues. Help pls
Junior Talker

Posts: 3
Trades: 0
Hi thanks for the replys. The page is www.hair-21.co.uk

and it's <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

thanks
TheStalker is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 04:34 PM Re: Two background issues. Help pls
Junior Talker

Posts: 3
Trades: 0
should of posted the address before but was only testing on my local computer at the time. It should give you all an idea of what i'm trying to do when u look at the page.
TheStalker is offline
Reply With Quote
View Public Profile
 
Old 04-28-2010, 08:12 PM Re: Two background issues. Help pls
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ok, you should take a look at this article then:
http://css-tricks.com/multiple-backg...nd-right-half/
__________________
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
 
Reply     « Reply to Two background issues. Help pls
 

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.39076 seconds with 12 queries