Jump to content

[SOLVED] More Than One Background Image


DEVILofDARKNESS

Recommended Posts

Hi How Can I add more than one BGImage?

Like you can see in the code I want an image in the top center, in the bottom left (and also in the bottom right <= not in code)

If I try the code it only uses the second bgimage (which is normal :) )

body
{ 
	background-image: url(/images/brandenburg.jpg);
	background-repeat: no-repeat;
	background-position: top center;
	background-image: url(/images/eifel.jpg);
	background-repeat: no-repeat;
	background-position: bottom left;
	background-color: black;
	color: #FF0000;
}

Link to comment
Share on other sites

k, for the top center one, you can do a background image centered on the BODY tag, or on a DIV tag in the body.

 

for the bottom and left and right, you will need to look into the 100% height hack, then have two fixed width/height DIVs with the backgrounds and positioned absolutely

Link to comment
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.