Difference between revisions of "CSS GUIDE BACKGROUND POSITION"

From CDOT Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
== Syntax ==
 
== Syntax ==
  <pre> background-position: top center; </pre>
+
  <pre> background-position: [left | right] [N% | Npx] [N% | Npx] [top | bottom]; </pre>
  
 
== Legal Values ==
 
== Legal Values ==

Revision as of 03:30, 29 November 2006

This document is a work in progress and is subject to change.

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]; 

Legal Values

Mozilla Recommended Values

Usage Examples

Notes

Specification Conformance

Browser Compatibility

See Also