MustiC Posted May 3, 2010 Share Posted May 3, 2010 Hello freaks, I have put a background on my website, but the background appears on the front. I want to put this background on the back. This is my DIV code in the .css file! #logo_game { background-image: url("/images/bg.jpg"); background-repeat: no-repeat; position: absolute; height: 457px; width: 951px; top: 0px; left: 50%; margin-left: -700px; z-index: 1; } How can I fix it that the background will appear in the Back of my site. I hope some of you can help me out with this! Regards, MustiC Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/ Share on other sites More sharing options...
Ken2k7 Posted May 3, 2010 Share Posted May 3, 2010 We have a CSS forum. This forum is for PHP coding help. Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052586 Share on other sites More sharing options...
MustiC Posted May 3, 2010 Author Share Posted May 3, 2010 Oh sorry didn't see it, This post can be moved to the right section! But if some of u know how to fix it, please help me Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052590 Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 try making it just backgound: url("/images/bg.jpg"); rather than background-image: url("/images/bg.jpg"); Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052616 Share on other sites More sharing options...
MustiC Posted May 3, 2010 Author Share Posted May 3, 2010 Not working :S It is the same. #EDIT. I think that the Position code is wrong, cuz when i type relative instead of absolute the picture appears in the top. What should i put into the position code to get the background to the back?? Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052637 Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 try removing the position variable alltogether and see what happens Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052645 Share on other sites More sharing options...
MustiC Posted May 3, 2010 Author Share Posted May 3, 2010 ive try that already, but its crashing Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052650 Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 well you got me. I'm not much into making things pretty. how about removing the z-ref' - don't recall sing that in any pages I have worked with (goes for nothing by the way) Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052653 Share on other sites More sharing options...
MustiC Posted May 3, 2010 Author Share Posted May 3, 2010 Now it looks like this: Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052656 Share on other sites More sharing options...
litebearer Posted May 3, 2010 Share Posted May 3, 2010 http://www.echoecho.com/csslayers.htm it explains layering divs Quote Link to comment https://forums.phpfreaks.com/topic/200591-help-div-code-problem/#findComment-1052676 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.