Jump to content
Sign in to follow this  
dxt

custom.css rules don't override style.css rules

Recommended Posts

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?

 

css-overwrite.png

 

this my custom.css configuration

customcss.png

Share this post


Link to post
Share on other sites
12 hours ago, 123host said:

Try adding !important to your rule

that should work. 🙂

Share this post


Link to post
Share on other sites

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 

 

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Thank you brian and everyone who  replayed to my question.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated