79178695

Date: 2024-11-11 18:06:18
Score: 0.5
Natty:
Report link

The outline isn’t showing on the first <a> tag because <a> tags are inline by default, meaning they only take up as much space as their content. When you put a larger block element, like a <div>, inside an inline <a>, the outline doesn’t wrap around it correctly. Setting display: flex on the <a> tag fixes this by making it behave like a block element, allowing the outline to cover the entire content.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Peter Plevko