Layouts how to centre things rather than down the left side

It may sound a basic question, but having just started with the jump start Responsive design book, everything is aligned left, how do you get it to align in the centre I have tried with no success so far

Welcome to the forums, @prh108. smile

As with many things in CSS, it depends what you want to centre, and what other elements you have in the design, but for many purposes, using margin: 0 auto; will do the trick.

There is a useful article here, covering various techniques:

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.