When I use the CSS code below, my content is as wide as I want, but I want the width of my homepage to be 950px. The code below makes the width of my home page 768px.
Can you help with this problem, thank you in advance.
Using a Layout Element would allow you to set the Container Width specific to a page through the Display rules as well if you prefer setting it only for the homepage.
Now, with regards to your code, if you want to go by this, does modifying the code to something like this work?:
Thank you for your answer.
Appearance > Customize > Layout > Container: section set to 1200x.
I created a Layout Element and selected the Display Rules section as Front Page.
Elements has also started to appear on the Homepage.
Then you can use layout element for homepage(set to 950px, location: frontpage) and also other pages(set to 768px, location set to entire site, exclude frontpage).