CSS CSS Selectors Advanced Selectors The attr() CSS Function

1 Answer

Steven Parker
Steven Parker
203,729 Points

A common reason for setting a pseudo-element to "inline-block" is to allow vertical margins or padding to work.

But, as you noticed, since neither is used here there's no obvious advantage with the current settings.

I noticed that setting is not used in the "Quick Reference" example shown in the "Teacher's Notes" section.