background website
The CSS background- properties There are several CSS properties used for setting the background of an element. These can be used on <body> to set the background of an entire page. background-color background-image background-repeat background-attachment background-position Setting a background-color The most straightforward way to change the default (white) background for a page is to use background-color on the body. body { background-color: #efefef; } One thing you have to watch out for, though — if you set the background-color too dark, the default black text won’t be readable, so you’ll need to change it (or not make the background so dark). See our tutorial on dark backgrounds for more tips on dark-background site design. Setting a background-image All of the other CSS background- properties are connected with setting an image. background-image — The source URL for the image. background-repeat — Whether and how the image should tile. bac...