CSS Background-image Property

The background image property of CSS is used to apply images as backgrounds to elements.

background-image obviously sets the background image of a given element.

Possible Values

You either have the option to specify the URL for the image, or the keyword none.

Example:

In the following example i specify the URL for an image, which i want to use as background for body.

body {
  background-image: url("MyImage.png");
}

Inherited? - NO!

Tilføj kommentar

Links som bliver tilføjet er uden rel="nofollow", men vil blive slettet hvis de bliver anset som spam.

[url=Absolutte URL til side]TITEL[/url]

Du skal bruge code tags rundt om kode eksempler, for at bevare mellemrum og linjeskift. Kode eksempler bliver kun syntax fremhævet, hvis du fortæller hvad for et sprog du bruger.

[code1 html|css|javascript|php|sql]Indsæt din kode her[/code1]

Du vil måske læse vores Privat Politik før du tilføjer en kommentar.