HTML & CSS · Junior · Question 48 of 75

What does p-4 equal in Tailwind with the default configuration?

Explanation

Tailwind's spacing scale is based on a 0.25rem unit: p-4 = 4 × 0.25rem = 1rem. In v4 this is implemented with the --spacing variable: calc(var(--spacing) * 4). An arbitrary value looks like p-[4px].

Further reading

Problem with a question

HTML & CSS · Junior · question 48

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz