79600637

Date: 2025-04-30 15:32:09
Score: 2
Natty:
Report link

Using background-size:cover and background-attachment:fixed together can lead to unexpected behavior, especially when the element is smaller than the viewport. The background image will be scaled to cover the viewport's height, potentially causing it to appear larger or stretched on the element. This is because background-attachment:fixed makes the background image behave as if it's a position:fixed element, causing it to be relative to the viewport, not the element itself.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Squishy