Jump to content
Sign in to follow this  
studentkrubb

Two background pictures on the same page?

Recommended Posts

studentkrubb

Hello, I'm trying to add two background images at the same page.

body {
	    background-image: url("http://media.nysida.studentkrubb.se/2011/03/kok1.png");
	    background-repeat:no-repeat;
	    background-position: center center;
	}
body {
	    background-image: url("http://media.nysida.studentkrubb.se/2011/03/copyright.jpg");
	    background-repeat:no-repeat;
	    background-position: bottom right;
	}

The image positioned bottom right is a small transparent picture. I can't see where I get it wrong, any ideas?

Share this post


Link to post
Share on other sites
cmunns

You can't apply two backgrounds to the same selector. One of those selectors needs to be a direct child of the parent. Look for whatever div comes right after the body tag and use that

Share this post


Link to post
Share on other sites
studentkrubb

Thanks! Works like a charm.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×