Complete the code to add padding of 4 units on all sides of the div.
<div class="p-[1]">Content</div>
p-2 or p-6 which changes the padding size.p- prefix.The class p-4 adds padding of 1rem (4 units) on all sides of the element.
Complete the code to add horizontal padding of 6 units to the section.
<section class="px-[1]">Section content</section>
py-6 which adds vertical padding instead.The class px-6 adds padding-left and padding-right of 1.5rem (6 units).
Complete the code to add top padding of 8 units to the header.
<header class="pt-[1]">Header content</header>
pt-10 or pt-12 which provide larger padding than 8 units.pt-4 which provides smaller padding.The class pt-8 adds padding-top of 2rem (8 units). The value 8 is valid and correct.
Fill both blanks to add vertical padding of 2 units and horizontal padding of 3 units to the article.
<article class="[1]-2 [2]-3">Article content</article>
pt-2 and pl-3 which add padding only to top and left.py-2 adds padding-top and padding-bottom of 0.5rem (2 units). px-3 adds padding-left and padding-right of 0.75rem (3 units).
Fill all three blanks to add padding-top 5 units, padding-right 4 units, and padding-bottom 6 units to the footer.
<footer class="[1]-5 [2]-4 [3]-6">Footer content</footer>
pl instead of pr for right padding.pt-5 adds padding-top 1.25rem, pr-4 adds padding-right 1rem, and pb-6 adds padding-bottom 1.5rem.