dxt Posted August 20, 2020 Share Posted August 20, 2020 Hi I'm trying to override a rule in style.css using custom.css as it is recommended by WHMCS developers, but as you can notice on the capture bellow from the developer tool the rule is not override as expected, could you please tell me what it is wrong? this my custom.css configuration 0 Quote Link to comment Share on other sites More sharing options...
123host Posted August 21, 2020 Share Posted August 21, 2020 Try adding !important to your rule text-align:left !important; 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 21, 2020 Share Posted August 21, 2020 We not use .text-center class on template file instead ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 21, 2020 Share Posted August 21, 2020 12 hours ago, 123host said: Try adding !important to your rule that should work. 🙂 0 Quote Link to comment Share on other sites More sharing options...
dxt Posted August 21, 2020 Author Share Posted August 21, 2020 Thank you everyone for your replay, !important has worked, I thought there would be another solution as they are many to not recommend using !important on CSS rules 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 22, 2020 Share Posted August 22, 2020 16 hours ago, dxt said: !important has worked, I thought there would be another solution as they are many to not recommend using !important on CSS rules i've seen those articles too - but with WHMCS, and the way it's CSS files are called, it's far simpler to use !important than to reorganise them to remove the need. 1 Quote Link to comment Share on other sites More sharing options...
dxt Posted August 22, 2020 Author Share Posted August 22, 2020 Thank you brian and everyone who replayed to my question. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted August 22, 2020 Share Posted August 22, 2020 The trick is to make the selector longer and make sure that the CSS file is loaded after style.css. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.