Difference between revisions of "CSS GUIDE BACKGROUND POSITION"
Line 4: | Line 4: | ||
== Syntax == | == Syntax == | ||
− | <pre> background-position: top | + | <pre> background-position: [left | right] [N% | Npx] [N% | Npx] [top | bottom]; </pre> |
== Legal Values == | == Legal Values == |
Revision as of 02:30, 29 November 2006
This document is a work in progress and is subject to change.
Contents
Summary
Use the background-position property to specify where a background image is placed. If the image repeats (horizontally, vertically or both) then it repeats from this location. If there is a single image, it is placed using the background-position property.
Syntax
background-position: [left | right] [N% | Npx] [N% | Npx] [top | bottom];