What's new? | Help | Directory | Sign in
Google
doctype
Documenting the open web
  
  
  
    
Search
for
Updated Jun 25, 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

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

Further reading


Sign in to add a comment