0
0
CSSmarkup~5 mins

Background repeat in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS property background-repeat control?
It controls how a background image repeats (or doesn't) inside an element's background area.
Click to reveal answer
intermediate
Name the possible values for background-repeat.
  • repeat: repeats image both horizontally and vertically.
  • repeat-x: repeats image only horizontally.
  • repeat-y: repeats image only vertically.
  • no-repeat: no repetition, image shows once.
  • space: repeats image with space between.
  • round: repeats image scaled to fit without clipping.
Click to reveal answer
beginner
What happens if you set background-repeat: no-repeat;?
The background image will appear only once and will not repeat horizontally or vertically.
Click to reveal answer
beginner
How does background-repeat: repeat-x; behave?
The background image repeats only horizontally across the element's width, but not vertically.
Click to reveal answer
advanced
Explain the difference between space and round values in background-repeat.

space repeats the image with equal space between each repetition without clipping.

round repeats the image scaled so it fits exactly without clipping or spacing.

Click to reveal answer
Which background-repeat value repeats the image only vertically?
Arepeat-y
Brepeat-x
Cno-repeat
Drepeat
What is the default value of background-repeat in CSS?
Arepeat
Bno-repeat
Crepeat-x
Dspace
If you want a background image to appear only once, which value should you use?
Arepeat
Brepeat-x
Cround
Dno-repeat
Which background-repeat value scales the image to fit without clipping?
Aspace
Bround
Crepeat-x
Dno-repeat
What does background-repeat: space; do?
ADoes not repeat image
BRepeats image only horizontally
CRepeats image with space between each repetition
DRepeats image scaled to fit
Describe how the background-repeat property affects the display of a background image.
Think about how wallpaper patterns repeat on walls.
You got /3 concepts.
    Explain the difference between the space and round values for background-repeat.
    Imagine tiles spaced apart versus tiles resized to fit exactly.
    You got /2 concepts.