Hi
I try to modify header color on scroll with custom css without succeed
css : #header.scrolled
value : background-color: rgba(255, 255, 255, 0.9) !important;
is located on template.css (css-compiled folder)
if i play with this code in custom.css nothing happened
seems that custom.css code is viewing before css compiled code !!
logical in fact but more hard for customisation especially witout scss compiler
It’s vitally important that when developing web sites you are intimately familiar and highly comfortable using the developer tools in your browser. Also be sure to study your CSS guides.
This will save you hours of grief!
For example, your case you can see the custom.css loading here:
Ok so the custom.css loads as expected. The order is important if you have two css definitions are exactly the same, but a more specific definition will take precedence no matter the order it was loaded. Also a definition with !important will take precedence even when another definition has more specificity. This is just how CSS works.
So in your case your custom.css is not ‘strong enough’ to override the other definition. You can see this clearly here:
The browser devtools automatically fetch and show you the SCSS source, because the template SCSS compilation generates the source map. It’s great for debugging, since it already points you to the file you need to change. You can disable CSS source maps in the devtools if that confuses you.
Yes I was talking about the screenshots you posted if that is the Chrome DevTools, they have an option to disable source mapping, but I’m not sure it’s what you need, since they help you.
Hi OK but I use my browser like all customers with default setting.
I test with Chrome, IE and Firefox and same issue
modifications of css-compiled are not take into account means i have only option of custom css or working with scss in my theme inheritance