FANDOM


The background-repeat property is used in CSS and certain HTML elements. It specifies whether the background image is repeated (tiled), and how.


Values

  • repeat - The image is repeated both horizontally and vertically.
  • repeat-x - The image is repeated horizontally only.
  • repeat-y - The image is repeated vertically only.
  • no-repeat - The image is not repeated; only one copy of the image is drawn.


HTML example:

<span style="background-image:url('http://images4.wikia.nocookie.net/__cb20100613222942/htmlcss/images/b/bc/Wiki.png'); background-repeat:repeat-x;">
ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
</span>


CSS example:

body {
      background-image:url("http://images4.wikia.nocookie.net/__cb20100613222942/htmlcss/images/b/bc/Wiki.png");
      background-repeat:repeat-x;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.