# Common Layout Bugs and How to Fix Them

The seven layout bugs almost everyone meets, from a page that scrolls sideways to a z-index that won't work, each with its symptom, its cause and the fix that removes the cause instead of hiding it.

![Cheat sheet: Common Layout Bugs and How to Fix Them](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/65d9d8b9fdc644598d22cc1887d564a1.webp)

- Category: CSS
- Level: Journeyman
- Tags: CSS, Margin collapsing, Overflow, Stacking context, Sticky positioning, Viewport, web-development
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/css-common-layout-bugs-cheat-sheet
