css background image position right code example

Example 1: move css background image

background-image: url('w3css.gif');
 background-repeat: no-repeat;
 background-attachment: fixed;
 background-position: center;

Example 2: Background image position

.background-image-position{
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

Example 3: css align backround image to the right

.right-align-background {
    background-position: center right;
}

Tags:

Html Example