Technology & Software · Written by the Blessed Records editorial team · Published 21 October 2026
In many parts of the world, including Nigeria, most people browse the web on a phone. A site that looks good only on a large computer screen is failing the majority of its visitors. Responsive design means a single site that adapts gracefully to any screen size. This guide explains the main ideas and gives you a practical checklist.
Set the viewport
Without a viewport instruction, phones display a shrunken desktop version of the page. Add this line inside the head of every page.
<meta name="viewport" content="width=device-width, initial-scale=1">Design mobile first
Mobile-first means you design the small-screen layout first, then add enhancements for larger screens. Starting small forces you to prioritise the most important content, keeps pages light and avoids clutter. A single column with readable text and large, tappable buttons is often the right foundation.
Use flexible units and layouts
- Use percentages,
remandmax-widthinstead of fixed pixel widths for large sections. - Use Flexbox and Grid so that columns wrap and stack automatically.
- Let images scale with
max-width: 100%; height: auto;. - Keep text readable by using a comfortable base size, usually around 16 pixels.
Add media queries where needed
A media query applies styles only when the screen meets a condition. Mobile-first styles use min-width, so that extra layout rules apply as the screen grows.
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) {
.cards { grid-template-columns: 1fr 1fr; }
}Mind touch and speed
- Make buttons and links large enough to tap comfortably.
- Keep enough space between tappable elements.
- Compress images and avoid heavy scripts so pages load quickly on mobile data.
- Avoid horizontal scrolling by letting wide tables and code scroll inside their own container.
Testing checklist
- Open the page on a real phone and on a computer.
- Resize your browser window to see how the layout reacts.
- Rotate the phone between portrait and landscape.
- Check that no text or logo is oversized and nothing overlaps.
- Test on both Safari and Chrome if you can.
Common questions
What are breakpoints?
They are the screen widths at which your layout changes, such as at 768 pixels. Choose them where your content starts to look awkward, not for specific devices.
Do I need a separate mobile site?
No. A single responsive site is easier to maintain and better for search engines.
How big should text be on a phone?
Around 16 pixels for body text is a common minimum, with larger headings.
Speed is part of design
A beautiful page that takes ten seconds to load on mobile data will lose visitors. Resize images before uploading, use modern formats where possible and load only the scripts you need. Test on a slower connection to see what real visitors experience.
Key takeaways
- Always set the viewport meta tag.
- Design for small screens first and enhance for larger ones.
- Test on real devices and keep pages light.
Keep reading
- How Search Engines Work: Crawling, Indexing and Ranking
- Build Your First Web Page with HTML and CSS
- JavaScript for Beginners: Make Your First Interactive Page
- More from the Blog
- Listen on the Music page
This article is for general information and education. It is not legal, financial or professional advice. Read our editorial standards.