Know a great AI tool or AI news source? Submit it to AiByts

layout

4 stories

Stories

  • Why srcset keeps picking the wrong image

    A srcset with four good widths on it will still fetch the largest one on a phone, and the attribute doing that is not srcset. sizes is the half that decides, it is guessed far more often than it is measured, and its default is the worst value it can hold. (layout, 4 min)

    LoupeKit Blog4 min read
  • Why your sticky header stops sticking

    position: sticky has no error state. When it does not work it simply behaves as relative - and the cause is usually an ancestor you have never looked at, changed by somebody solving a different problem. (layout, 4 min)

    LoupeKit Blog3 min read
  • Why z-index: 9999 does not put your element on top

    The number is almost never the problem. z-index: 9999 loses to z-index: 2 every day of the week, and it loses for a reason that is nowhere near the element you were editing. (layout, 6 min)

    LoupeKit Blog5 min read
  • What makes a page scroll sideways

    overflow-x: hidden on body is not a fix. It is a way of not knowing which element is forty pixels too wide - and it quietly breaks position: sticky on everything inside it on the way past. (layout, 6 min)

    LoupeKit Blog4 min read

Showing 4 of 4 stories

You're all caught up.

AiByts Weekly Brief

Get the top AI news and tools straight to your inbox every week.

Weekly · AI news

Join 15,000+ AI enthusiasts