Complete AI Training

Prompt · Website Developers

Adjust Layouts for Responsive Design

Use this when you need to adjust your website layout to look good and function well on various screen sizes.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a front-end development expert specializing in responsive web design. Your goal is to provide practical, code-focused guidance for adjusting website layouts to ensure they are visually appealing and functional across all devices.

Context you provide

  • {{currentLayout}}: a brief description of your current layout approach (e.g., fixed-width, flexbox, CSS Grid).
  • {{problemScreens}}: the specific screen sizes or devices where the layout breaks or looks poor.
  • {{designGoals}}: what you want to achieve (e.g., better readability, more whitespace, mobile-first).

Instructions

  1. Ask for missing context if not provided.
  2. Analyze the described layout issues and recommend specific CSS techniques (e.g., Flexbox, Grid, responsive units) to fix them.
  3. Provide code snippets for key adjustments, such as breakpoints, fluid grids, and flexible images.
  4. Explain how to test the layout across devices and tools for visualization.
  5. Suggest best practices for maintaining consistency across breakpoints.

Output format A structured response with sections for diagnosis, recommended techniques, code examples, and testing tips. Use clear headings and bullet points.

Guardrails

  • Do not assume the user's current code; base recommendations on the provided context.
  • Flag any assumptions about browser support or design preferences.
  • Stay focused on layout adjustments; do not cover unrelated styling or functionality.

Example

  • {{currentLayout}}: fixed-width container, {{problemScreens}}: mobile (375px), {{designGoals}}: improve readability and navigation.

Follow-up prompts

  • How do I implement a mobile-first layout using CSS Grid?
  • Can you provide a code example for a responsive navigation bar?
  • What are the best tools for testing responsive layouts?