powaz Posted July 3, 2007 Share Posted July 3, 2007 i need to use two background pictures in my web in css for one i use: body { background-image: url(pictures/bg.jpg); background-repeat: no-repeat; background-position: left 0px; background-color: #EDEFFC; } how can i do it for 2 pictures? Thanx 4 answers Quote Link to comment https://forums.phpfreaks.com/topic/58275-background-pictures/ Share on other sites More sharing options...
AndyB Posted July 3, 2007 Share Posted July 3, 2007 You can't have two backgrounds in the same element. You can have two overlapping elements each with their own background, e.g. body div and a content div. Quote Link to comment https://forums.phpfreaks.com/topic/58275-background-pictures/#findComment-288946 Share on other sites More sharing options...
powaz Posted July 3, 2007 Author Share Posted July 3, 2007 so what's the decision form one background i using body, for second ? ... ??? i can't use div o p ... Quote Link to comment https://forums.phpfreaks.com/topic/58275-background-pictures/#findComment-288963 Share on other sites More sharing options...
AndyB Posted July 3, 2007 Share Posted July 3, 2007 I don't understand your response at all. As I said, if you want two background images they have to be in different elements. How you achieve that is up to you (and your code). Quote Link to comment https://forums.phpfreaks.com/topic/58275-background-pictures/#findComment-288969 Share on other sites More sharing options...
ToonMariner Posted July 4, 2007 Share Posted July 4, 2007 put one background on the html element and one on the body... Quote Link to comment https://forums.phpfreaks.com/topic/58275-background-pictures/#findComment-289815 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.