Jump to content

Positioning


Ruud Hermans

Recommended Posts

When an image allready has an option set for "background-position" then is it possible to add a second one?I got:

body {background-image: url('afbeeldingen/afbeelding1.gif');background-repeat: repeat-y;background-attachment: fixed;background-position: center; }

But beside that the image need to be centered it also need to start a liitle down under a banner.Ruud Hermans

Link to comment
Share on other sites

No you can only have one value.You could open the picture in an editor and add extra space above it, that would push the picture down when centered on the page, just remember and colour the extra space the same as the web page background

Link to comment
Share on other sites

You can also have a second value at background-position but it must be in the same declaration. That second value could be "left", "right", "top" or "bottom". The first two declare position by x and the other two by y. "center" is common for both x and y.Some valid examples are:

background-position: right bottom;

background-position: top center;

background-position: right top;

background-position: left center;

Link to comment
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
×
×
  • Create New...