Contact Us || Privacy Policy || About Us |
|
CSS Background Colorbackground property is used to background effects on element or page. Types of Background PropertyThere are Five CSS background properties that is.
1) CSS background-colorIn CSS the background-color property is define the background color of the element. Test it NowOutput: HTML.CSS. 2) CSS background-imageThe background-image property is used to set an image as a background of an element. Test it Now3) CSS background-repeatbackground-image property repeats the background image horizontally and vertically. The background looks better if the image repeated horizontally only. background-repeat: repeat-x; Test it Nowbackground-repeat: repeat-y; Test it Now4) CSS background-attachmentThe background-attachment property is used to specify if the background image is fixed or scroll with the rest of the page in browser window. If you set fixed the background image then the image will not move during scrolling in the browser. Test it Now5) CSS background-positionbackground-position property is used to initial position of the background image.the background image is placed on the top-left of the webpage. Some following positions are:
Next TopicCSS Border
|