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
https://forums.phpfreaks.com/topic/155077-solved-more-than-one-background-image/
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

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.