Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.