change background image position css 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: background position in html

background-position: right top;

Tags:

Html Example