Jump to content

How to overwrite special, masked CSS rule?

Recommended Posts

Lets start with an example from a CSS for a Webpage:

<div class="lg:w-10/12 ....">....</div>

One of the referenced CSS rules is as follows (mind the additional masking backslash \):

.lg\:w-10\/12 { width: 50%;  }

Now I want to override this CSS statement (later after loading) by the following additional CSSĀ  statement:

.lg\:w-10/12, .lg\:w-10\/12 { width: 90% !important; }

I put the classname WITH and WITHOUT backslash before it.
Nevertheless the !important new CSS is NOT accepted.

The width is (as shown in WebDeveloper of Firefox) still 50%.

What wrong?

How can I (without touching the original CSS file) adjust the width otherwise?


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.

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.

  • Create New...