How a background image will be repeated.

      background-repeat: repeat | repeat-x | repeat-y | no-repeat | space | round | inherit ;

repeat - The background image will be repeated both vertically and horizontally. (default)
repeat-x - The background image will be repeated only horizontally.
repeat-y - The background image will be repeated only vertically.
no-repeat - The background-image will not be repeated.
space - Space the image out evenly across the width and height of the element. (CSS 3 only)
round - Scale the image until it can repeat throughout the element without being cut off. (CSS 3 only)
inherit - Inherit from the parent element.

New in CSS3 is the ability to specify multiple background images. You can (optionally) specify the background-repeat for multiple images as a comma-separated list, these will then be applied (in order) to each of the images specified by background-image.

H1 { background-repeat: repeat-x; }
#emw3id { background-repeat: no-repeat; }

Try it:

This is a sample of text with a CSS background image. By default The background image will be repeated both vertically and horizontally. This is often used to provide a tiled wallpaper effect.

(CSS 1) Browser Support: All major browsers. The two new values in CSS 3 have limited support: IE9 + Opera 10.5

“The ear tends to be lazy, craves the familiar and is shocked by the unexpected; the eye, on the other hand, tends to be impatient, craves the novel and is bored by repetition” ~ W. H. Auden


Background-repeat - MDN Web Docs.
Background-Attachment - Position of a background image relative to the page.
Background-Color - The background color of an element.
Background-Image - The background image for an element.
Background-Position - Starting position of a background image.
background - A shorthand for the background properties.

Copyright © 2013-2019
Some rights reserved