Streaming live at 10am (PST)

Make content central to browser window but keep text left-aligned

I’m sure this is a very simple thing to do but I can’t work it out.

How do you make all content central to the browser window (maximum width of 1200px), content 100% width, but keep content/text left aligned. At the moment all the content pushes to the left hand side and leaves a huge gap on the right.


Here is my site Read-Only:

(how to share your site Read-Only link)

Hello @sweller

I noticed you’re using a class body for the main body element in your project and that you applied a maximum with of 1200 pixels, if that is going to be the case the only thing you have to do in order to center the content is to apply center the element as shown in the following video:

1 Like

Thank you so much! That’s exactly what I was looking for.

1 Like