erichow Posted January 7, 2020 Share Posted January 7, 2020 Hello, I'm linking a style sheet into my code through code injection (header), and I would like to override some of the styles from the linked css through my own custom css in the CSS editor. But I've noticed that the custom CSS is being implemented before the linked CSS, causing the reverse effect of the linked CSS overriding the custom CSS. Is there a way to work around this? This is how it appears in the DOM: And here is how the CSS is being overridden. Thanks! Link to comment
tuanphan Posted January 7, 2020 Share Posted January 7, 2020 use !important; eg: display: inline-block !important; 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
erichow Posted January 7, 2020 Author Share Posted January 7, 2020 is there a better way than applying !important to every single value? Link to comment
tuanphan Posted January 7, 2020 Share Posted January 7, 2020 2 minutes ago, erichow said: is there a better way than applying !important to every single value? There are 3 ways to insert CSS Wrap CSS in style tag and insert to Header Insert to Custom CSS Add !important to Custom CSS You can test all. 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
Archived
This topic is now archived and is closed to further replies.