CSS Layout Debugger

Debug CSS layout issues including flexbox, grid, and positioning problems

6/11/2026
Prompt
Help me debug CSS layout issues on my web page.

**HTML structure:**
```html
{{HTML}}
```

**CSS styles:**
```css
{{CSS}}
```

**What I want the layout to look like:** {{DESIRED_LAYOUT}}
**What's actually happening:** {{ACTUAL_BEHAVIOR}}
**Browser(s) affected:** {{BROWSERS}}
**Viewport size:** {{VIEWPORT}}

Please provide:
1. **Layout Analysis**: Explain why the current layout behaves this way
2. **Box Model Check**: Verify padding, margin, and border calculations
3. **Flexbox/Grid Diagnosis**: Debug flex/grid container and item properties
4. **Positioning Issues**: Check positioning context and stacking
5. **Fixed CSS**: Provide corrected styles
6. **Cross-Browser Fixes**: Address browser-specific issues
7. **Responsive Considerations**: Ensure layout works across viewports
8. **DevTools Tips**: How to debug similar issues using browser DevTools

Or press ⌘C to copy

Variables (6)

Replace these placeholders with your own content before using the prompt.

[{HTML][{CSS][{DESIRED_LAYOUT][{ACTUAL_BEHAVIOR][{BROWSERS][{VIEWPORT]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...