Jump to content

How to put background color


Recommended Posts


.page-node-6 .hero .contain {
    background: rgb(39 108 3 / 50%);

Background color now applies to the entire .contain element equally(50%). How can I modify the styling to the background color like this:

left side (about 50px) - 10%  color

Right side (about 20px) - 10% color

between left and right - 50% color.



Link to comment
Share on other sites

Sub divide your page into <div></div> and give each div an id.


Then, you can do whatever you want, with each id.



Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...