Posted The: 23/04/2008 At: 21:51
Last Edited: 15/08/2008 At: 18:49
Contents:
The background-position property sets the position of the background-image.
The keywords are:
In the following example, i first set the background-image for body, then background-repeat, and last the position of the image.
body {
background-image: url("MyImage.png");
background-repeat: no-repeat;
background-position: 24px 48px;
}In the above example the image is placed 24px from the top of its element, and 45px from the left side of its element.
Inherited? - NO!
Comments: [0]
© Brugbart Webdesign