Can you get a full-width background, but with the content NOT full-width?

[ad_1]

I'm creating a page on my site, and I want each section to have a different coloured background. The way I've done that is I've put that section's content into a group that's full-width, and given that group the coloured background. However, this is making the CONTENT go full-width too, and I DON'T want the content to be full-width.

I've tried putting the content in a row inside the Group, and making the row standard width, but this still hasn't worked.

Is this possible?

[ad_2]
1 Comment
  1. Sure.

    Outer div/section gets a background colour and then you create an inner div with a fixed width or max-width and margin: 0 auto to center it within the outer div.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer