My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-css, is-css-property, from-w3c
BackgroundPositionCSSProperty  
If a background image has been specified, the background-position property specifies its initial position.

You are here: Home > CSS Reference > Properties > background-position

Usage

Values

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
style.backgroundPosition reflects <div style='background-position: 10% 40%'> Y Y Y Y Y Y Y Y
style.backgroundPosition reflects <div style='background-position: 5px 10em'> Y Y Y N Y N Y N
style.backgroundPosition reflects <div style='background-position: bottom'> N N N N Y N Y N
style.backgroundPosition reflects <div style='background-position: bottom right'> Y Y Y N Y N Y N
style.backgroundPosition reflects <div style='background-position: center center'> Y Y Y N Y N Y N
style.backgroundPosition reflects <div style='background-position: center'> N N N N Y N Y N
style.backgroundPosition reflects <div style='background-position: left'> N N N N N N Y N
style.backgroundPosition reflects <div style='background-position: right'> N N N N N N Y N
style.backgroundPosition reflects <div style='background-position: top'> Y Y Y N N N Y N
style.backgroundPosition reflects <div style='background-position: top left'> Y Y Y N Y N Y N

Further reading


Sign in to add a comment
Hosted by Google Code