Jump to content

Two backgrounds. 1 image, 1 colour.


Gregoyle

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.