Jump to content

combine CCS codes/styles into one?


gordonisnz

Recommended Posts

Hello.

I'm wondering if it's possible to combine the CCS into one code.

For example: w3-yellow is here

.w3-text-yellow,.w3-hover-text-yellow:hover{color:#d2be0e!important}


I'm wondering if I can do my own code = I've tried this, but doesn't work.


.w3-mynewcode{w3-yellow, w3-center}

so using one new code will activate 2 or more existing codes. Or will I need to find the 'full' code of each thing, and insert them all into one code?


.w3-mynewcode:hover{color:#d2be0e!important, center} etc.. ?
 

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...