How to center content

I’m building my first website and I’m trying to center the content on all of my pages and posts. they are all skewed to the left of my main heading. Is it possible to get the content full width? I tried using this code in the custom css but it didn’t actually center the content.

.container.main-content-area {
float: left;
}

www.emilyschultz.net

I tried to input code in functions.php and I don’t know what happened but now I can’t access my website at all. I just get an error message:

Parse error: syntax error, unexpected ‘}’ in /home/balletfi/emilyschultz.net/wp-content/themes/activello-child/functions.php on line 18

Hi @scotttgregg,

I hope you are well today and thank you for your question.

To access your site please delete the child theme from your site home/balletfi/emilyschultz.net/wp-content/themes/activello-child/ using FTP or cPanel file manager.

Best Regards,
Movin

Okay. Deleted child theme from file manager and everything is working again. Thank you.

As far as my first question, how do I center the content on pages and posts?

You are most welcome here :slight_smile:

As far as my first question, how do I center the content on pages and posts?

Could you please share me your site URL where it’s displaying so that i can help you to achieve it?