Complete the code to make the background image repeat horizontally only.
<div class="bg-[url('/img/pattern.png')] [1] h-40 w-full"></div>
bg-repeat-y which repeats vertically.bg-no-repeat which disables repeating.The class bg-repeat-x makes the background image repeat only horizontally.
Complete the code to prevent the background image from repeating.
<section class="bg-[url('/img/texture.svg')] [1] h-48 w-full"></section>
bg-repeat which repeats in both directions.bg-repeat-x or bg-repeat-y which repeat only in one direction.The class bg-no-repeat stops the background image from repeating.
Fix the error in the class to make the background repeat vertically only.
<div class="bg-[url('/img/stripes.png')] [1] h-32 w-full"></div>
bg-repeat-x which repeats horizontally.bg-no-repeat which disables repeating.The class bg-repeat-y makes the background repeat vertically only.
Fill both blanks to make the background image repeat in both directions and cover the entire element.
<section class="bg-[url('/img/grid.svg')] [1] [2] h-64 w-full"></section>
bg-no-repeat which stops repeating.bg-contain which fits the image inside without cropping.bg-repeat makes the background repeat in both directions, and bg-cover makes it cover the entire element.
Fill all three blanks to make the background image repeat horizontally, not repeat vertically, and scale to fit inside the element.
<div class="bg-[url('/img/dots.png')] [1] [2] [3] h-48 w-full"></div>
bg-repeat-y instead of bg-repeat-x.bg-cover instead of bg-contain.bg-repeat-x repeats the background horizontally, bg-no-repeat prevents vertical repeating, and bg-contain scales the image to fit inside the element.