Si se ha especificado una imágen de fondo, se puede controlar la posición de la imágen con la propiedad css background-position.
body{background-image:url(fig.jpg);background-position:top;}
body{background-image:url(fig.jpg);background-position:top center;}
body{background-image:url(fig.jpg);background-position:center top;}
body{background-image:url(fig.jpg);background-position:50% 0%;}
| top left
left top 0% 0% Posición (arriba izquierda) |
top
top center center top 50% 0% Posición (arriba centro) |
right top top right 100% 0% Posición (arriba derecha) |
left left center center left 0% 50% Posición (izquierda centro) |
center center center 50% 50% Posición (centro) |
right
right center center right 100% 50% Posición (derecha centro) |
bottom left left bottom 0% 100% Posición (abajo derecha) |
bottom bottom center center bottom 50% 100% Posición (abajo centro) |
bottom right right bottom 100% 100% Posición (abajo derecha) |