background-repeat
You can re-size the dinosaur boxes using the grabber in the bottom right corner of each.
CSS3
introduced
space
and
round
, and it
has been supported in practically all browsers since 2010
. (Not supported in IE8 and earlier, or FF3 and earlier.)
This may be little more than a re-creation of
https://codepen.io/chriscoyier/pen/vxgyRj
+ dinosaurs; but I learn well when I create my own demos. PS - holy Haleakalā!
resize: both; overflow: hidden;
is amazing!
background-repeat: repeat;
The default setting. The image is tiled throughout the element. Cut off the image at the edges.
background-repeat: space
Tile as with
repeat
, but don't crop the image (unless a single image won't fit).
Add extra whitespace between images
so that the element to its edges.
background-repeat: round
Tile as with
repeat
, but never crop the image.
Change the size of images
so that they fill the element to its edges.
background-size: cover;
Note that
background-size: cover;
properties override
background-repeat
.