Skip to content
Websites & E-commerce / 4 MIN READ

Responsive web design with HTML and CSS: a practical guide

See how flexible HTML and CSS layouts help a website work on smaller screens, and what to test beyond the page design.

Start reading
CLOUDFUSION / INSIGHTS4 MIN READ

Responsive web design lets the same website adapt to the space available. Text stays readable, layouts rearrange and controls remain usable as someone moves between a phone, tablet and larger screen.

HTML provides the page structure; CSS controls how that structure is presented. Getting both right gives you a flexible starting point. The final check is whether a person can complete the task they came for, such as finding a service, reading an article or buying a product.

Give the page a useful structure

Start with a sensible reading order in the HTML. Headings should describe the sections that follow them. Use links for destinations, buttons for actions and labels for form fields. This structure should remain understandable when the page becomes a single column.

The viewport setting tells a mobile browser to use the device width. From there, build the narrow layout first and add more columns where the content has enough room. Avoid relying on one fixed page width.

MDN’s responsive design guide explains how flexible layouts, media queries and responsive media work together. These are useful building blocks for both a small business site and a larger application.

Use CSS that can adapt between screen sizes

Grid and Flexbox help arrange content without fixing every element to a particular screen size. Relative sizing lets text and spacing respond to available room. Add a breakpoint when the content needs a different arrangement, rather than designing only for a short list of devices.

Long product names, an extra navigation item or a larger text setting can expose problems that a tidy mockup hides. Check those cases while building the layout. The design should cope with ordinary content changes without needing a developer to fix every page.

Match the images to the space they occupy

A product photo may need a different crop from a wide editorial banner. Make sure its subject remains clear on a small screen. Supplying appropriate image sizes also avoids sending an unnecessarily large file for a small display.

Reserve space for media so that text does not jump when it arrives. Decide which image needs to load immediately and which images further down the page can wait. Review this on a slower connection as well as on office Wi-Fi.

Test the parts customers use

At BigBore, the customer-facing store is connected to payment, accounting, delivery and transactional email services. A mobile review of that kind of site needs to follow the shopping journey into checkout and its confirmations. A homepage that fits on a phone does not establish that the order flow is usable.

A publishing website has different priorities. Our Executive Forecast project connects articles with reports, regions, industries and organisations. For a site with that structure, readers need clear routes into relevant material and a comfortable article layout. Those are useful tasks to include in a responsive review.

  • Open the menu and follow its links using touch and a keyboard.
  • Read a long heading and enlarge the text.
  • Complete a form, correct an error and find the confirmation.
  • Check product options, delivery details and checkout where relevant.
  • Turn on reduced motion and confirm that the content remains available.

Fix the issues that interrupt the task first

Sideways page scrolling, a menu that will not close, hidden form errors and controls that are difficult to tap deserve attention before decorative refinements. Use real devices alongside browser testing; they can reveal differences in input, performance and the space taken by the browser’s own controls.

Responsive design can remove obstacles, but it does not guarantee a particular increase in enquiries or sales. Compare completed tasks and relevant visitor feedback before and after a change. Keep other influences, such as campaigns or product availability, in mind when interpreting the result.

Where should an existing website review begin?

Choose the pages people use most and the action each page needs to support. Share any reported problems and the devices involved. Our website design and development service covers new builds and improvements to existing sites, with the scope shaped around those needs.

All Insights
CLOUDFUSION / GET IN TOUCH
Rather talk first?+27 (0)81 044 5554Call
  1. 01 Choose
  2. 02 Details
  3. 03 Send
What would you like help with?

Describe it in your own words, or choose a service below.

What happens next?

Answer a few questions, then check your details before sending. We’ll review what you need and get in touch to discuss the scope, budget and next step. Sending an enquiry does not commit you to a project.

Already a client?Account help, faults, access or renewals.

Nothing is sent until you submit. How we use your details (opens in a new tab) · Privacy Notice (opens in a new tab) ·

ALREADY WITH CLOUDFUSION

Client
access.

Use the right workspace for what you need to do.

Client login Invoices, renewals, hosting, domains and account details.Get support Sign in to open a support ticket for a service Cloudfusion already manages. Your ticket stays with your account history.

Trouble signing in?

For an active project, use the workspace link supplied by your Cloudfusion contact.