// References / CSS Background-position Property

Posted The: 23/04/2008 - AT: 23:51

Edited The: 15/08/2008 - AT: 20:49

The background-position property sets the position of the background-image.

Possible Values

  1. Units of Measurement
  2. Keywords

The keywords are:

  1. top
  2. right
  3. bottom
  4. left

Example:

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

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial
  8. SEO Tutorial

Checked At:06:18

5 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.132701158524 seconds

Welcome Guest