reyclark Posted July 25, 2023 Share Posted July 25, 2023 Site: https://www.uarizonasme.com/ Password: squash I'm trying to apply a code to the CSS so I can get a gradient between two different colors: #049c4c and #043c64. (I'm using verion 7.1). This is the code I have so far: section, section .section-background, #header { background-color: #043c64 !important; } .bright-inverse:not(.has-background) .section-background { background: #049c4c; } The code is applying to all the sections (not including the header), but I just want apply the gradient between these two sections: Link to comment
tuanphan Posted July 26, 2023 Share Posted July 26, 2023 Change this code .bright-inverse:not(.has-background) .section-background { background: #049c4c; } to 2 section id sectionid1, sectionid2 { background: #049c4c; } This is section id Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
reyclark Posted July 26, 2023 Author Share Posted July 26, 2023 (edited) @tuanphan i made the corrections, but it does not do what i want exactly. where did i go wrong? my code is: section, section .section-background, #header { background-color: #043c64 !important; } section[data-section-id="64aeeb5a21058b1d524bf2c5"], section[data-section-id="64aeeb5a21058b1d524bf2c8"] { background: #049c4c; } Edited July 26, 2023 by reyclark Link to comment
tuanphan Posted July 27, 2023 Share Posted July 27, 2023 Change first code to section, section .section-background, #header, .section-border { background-color: transparent !important; } If it still doesn' work, please share link to page in screenshot, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment