Complete the code to create a container with padding using Tailwind CSS.
<div class="[1]"> <p>This is inside a container with padding.</p> </div>
The class container mx-auto px-4 creates a centered container with horizontal padding.
Complete the code to make a section full-bleed (edge to edge) inside a container.
<section class="-mx-[1] bg-gray-200"> <p>This section stretches full width.</p> </section>
The class -mx-4 adds negative horizontal margin to stretch the section full width beyond the container's padding.
Fix the error in the code to make the full-bleed section work inside the container.
<div class="container mx-auto px-4"> <section class="-mx-[1] bg-blue-300"> <p>Full-bleed section</p> </section> </div>
Use -mx-4 to apply negative margin that cancels the container's px-4 padding, making the section full-bleed.
Fill both blanks to create a full-bleed section with vertical padding inside a container.
<div class="container mx-auto px-[1]"> <section class="-mx-[2] py-6 bg-green-200"> <p>Full-bleed with vertical padding</p> </section> </div>
py-6.Both container padding and negative margin use 4 to align and create the full-bleed effect.
Fill all three blanks to create a container with padding, a full-bleed section with vertical padding, and text centered.
<div class="container mx-auto px-[1]"> <section class="-mx-[2] py-[3] bg-purple-300 text-center"> <p>Centered full-bleed section</p> </section> </div>
text-center.The container uses px-4, the section uses -mx-4 to stretch full width, and py-6 adds vertical padding. text-center centers the text.