inline-block keeps an element in inline flow while allowing padding to affect its height. This makes it useful for links that need button-like spacing without leaving the line. section 5.4.2 section 8.2.6
Use inline-block when an inline element needs visible box styling:
- Set display: inline-block on a call-to-action link before adding vertical padding. section 5.4.2
- Change links from inline to inline-block when vertical padding makes them extend beyond a card. section 8.2.6
A padded card link
a { background-color: #ffa600; color: rgba(0, 0, 0, .75); padding: 0.75rem 1.5rem; display: inline-block; border-radius: 4px; text-decoration: none; } This preserves inline placement while making the padding contribute to the link's visible height.



