Complete the code to create a reusable CSS class that sets the text color to blue.
.text-blue { color: [1]; }The color property sets the text color. To make the text blue, use blue.
Complete the code to create a reusable CSS class that adds padding of 1rem all around.
.padded { padding: [1]; }The padding property adds space inside the element. Using 1rem adds padding relative to the root font size, making it reusable and scalable.
Fix the error in the reusable CSS class that should center text horizontally.
.center-text { text-align: [1]; }The text-align property controls horizontal alignment of text. To center text, use center.
Fill both blanks to create a reusable CSS class that makes text bold and adds a margin of 2rem.
.bold-margin { font-weight: [1]; margin: [2]; }font-weight: bold; makes text bold. margin: 2rem; adds space outside the element on all sides.
Fill all three blanks to create a reusable CSS class that sets background color to lightgray, text color to darkblue, and adds 1.5rem padding.
.custom-box { background-color: [1]; color: [2]; padding: [3]; }background-color: lightgray; sets a soft background. color: darkblue; sets the text color for good contrast. padding: 1.5rem; adds comfortable space inside the box.