Coding · Debug

Fix a Layout Problem on Your Web Page

Sort out overlapping boxes, uneven spacing or items in the wrong place, with a clear explanation.

Prompt Code output

Something on my web page is not where it should be. What I see: [LAYOUT_PROBLEM]. What I want instead: [DESIRED_LAYOUT]. Here is the HTML and CSS for that part of the page: [PAGE_CODE]. Please explain in plain words why the layout behaves this way, using a simple comparison if it helps. Give me the smallest change that fixes it, and show exactly which lines to replace. If there are several ways to fix it, pick the one that is easiest for a beginner to maintain. Also show me how to use the browser's built-in inspect tool to see the boxes around each element, so I can check problems like this myself next time.

Fill in the brackets

[LAYOUT_PROBLEM]
e.g. the three price boxes stack on top of each other instead of sitting side by side
[DESIRED_LAYOUT]
e.g. three boxes in one row on computers, one under another on phones
[PAGE_CODE]
Paste the HTML and CSS for the section that looks wrong

How to use

  1. Copy the prompt.
  2. Replace the text inside [BRACKETS] with your own details.
  3. Paste it into ChatGPT or another AI assistant.
  4. Read the result and ask for changes if needed.

Tip: A short description of what you see on screen helps as much as the code; mention the device and browser too.