Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
background-repeat

1 Articles
{
,

}
Direct link to the article background-repeat
background-repeat

background-repeat

If a background-image property is specified, the background-repeat property in CSS defines if (and how) it will repeat.

html {
  background-image: url(logo.png);
  background-repeat: repeat-x; 
}
Values

The background-repeat property accepts the following values:

/* Single value syntax */
background-repeat: repeat; 
…
Avatar of Geoff Graham
Geoff Graham on Feb 17, 2015 (Updated on May 21, 2024)

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top