CSS Background-repeat Property

The background-repeat property sets whether or not, and even how, a given background image should be tiled, or repeated if its smaller then its container.

Possible Values

  1. no-repeat
  2. repeat (Default)
  3. repeat-x [Repeats the image Horizontally]
  4. repeat-y [Repeats the image Vertically]

Example

The following example first sets a background-image for body, and then how it should be repeated, (in this case only Horizontally).

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

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.