Background five important attributes
Background-color: Specifies the color of the fill background.
Background-image: references a picture as a background.
Background-position: Specifies the position of the element background picture.
Background-repeat: Decide whether to repeat the background picture.
Background-attachment: Determines whether the background graph scrolls with the page.
. MYBG {
width:800px;/* Capture the width of the picture */
height:800px;/* the height of the captured image */
Background-image:url (repair101.jpg);/* Add background picture */
background-position:400px 400px;/* location from background image-X, y coordinates */
}
. MYBG {
width:a;/* Capture the width of the picture */
height:b;/* the height of the captured image */
Background-image:url (repair101.jpg);/* Add background picture */
Background-position:c d;/* the position captured from the background image-X, y coordinates, C, D as percent */
}
x = A+c; y = b*d;
CSS captures background images