Gregoyle Posted April 27, 2011 Share Posted April 27, 2011 Goooooood Morning. (lol 11pm <3) Alright so I'm editing the CSS for my website (tpk-rpg.net) And i want the background image to stretch from corner to corner but seeing as that's not possible for FF/IE yet i thought "Why not have the background one colour and just center an image on top of it!" Well i know how to center the image body { background-image:url('background.png'); background-repeat:no-repeat; background-attachment:fixed; background-position:center; } But how do i set a background colour so it appears BEHIND the image....? Link to comment https://forums.phpfreaks.com/topic/234814-two-backgrounds-1-image-1-colour/ Share on other sites More sharing options...
Gregoyle Posted April 27, 2011 Author Share Posted April 27, 2011 Wow cant edit my original post? Never mind i figured it out. its cause i did: backgroundcolor: green; And not background-color: green; Link to comment https://forums.phpfreaks.com/topic/234814-two-backgrounds-1-image-1-colour/#findComment-1206722 Share on other sites More sharing options...
cssfreakie Posted April 27, 2011 Share Posted April 27, 2011 mark it solved Link to comment https://forums.phpfreaks.com/topic/234814-two-backgrounds-1-image-1-colour/#findComment-1206974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.