-
AuthorPosts
-
July 8, 2015 at 9:01 pm #208431
How overwrite !Important rule?
In Which .less file reassign (overwrite) rule?template.css
@media screen and (max-width: 992px) {
// ...
.article-intro .img-fulltext-right {// ...
width: 100% !important;In custom.css can not be reassigned !Important rule.
You can remove the !Important rule of template.css. But it returns (overwrite) after compile LESS to CSS.Thanks.
Sorry for my English.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:30 am #576753Hello
I suggest you to override it via custom.css file .
It should work , if not working you can add change it directly from the Less files , Currently i am not sure about the code .
Provide more details so i can suggest you exact path of less file.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:30 am #643066Hello
I suggest you to override it via custom.css file .
It should work , if not working you can add change it directly from the Less files , Currently i am not sure about the code .
Provide more details so i can suggest you exact path of less file.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:30 am #741722Hello
I suggest you to override it via custom.css file .
It should work , if not working you can add change it directly from the Less files , Currently i am not sure about the code .
Provide more details so i can suggest you exact path of less file.July 9, 2015 at 12:37 am #576754I remove the !Important rule of template.css. But it returns (overwrite) after compile LESS to CSS.
In Which .less (In Which .less line code) file reassign (overwrite) rule?Thanks.
Sorry for my English.July 9, 2015 at 12:37 am #643067I remove the !Important rule of template.css. But it returns (overwrite) after compile LESS to CSS.
In Which .less (In Which .less line code) file reassign (overwrite) rule?Thanks.
Sorry for my English.July 9, 2015 at 12:37 am #741723I remove the !Important rule of template.css. But it returns (overwrite) after compile LESS to CSS.
In Which .less (In Which .less line code) file reassign (overwrite) rule?Thanks.
Sorry for my English.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:45 am #576756Hello You need to check the path of the code , and change it from the same file .
If you will provide details of your site and let me know the details ,
so i can see the code and let u know the exact path .Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:45 am #643069Hello You need to check the path of the code , and change it from the same file .
If you will provide details of your site and let me know the details ,
so i can see the code and let u know the exact path .Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 9, 2015 at 12:45 am #741725Hello You need to check the path of the code , and change it from the same file .
If you will provide details of your site and let me know the details ,
so i can see the code and let u know the exact path .jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
July 9, 2015 at 3:25 am #576775Hi there
# You’ll need increase your css priority in your custom code.
It’ll require bit knowledge about CSS. Here are some document.
http://monc.se/kitchen/38/cascading-order-and-inheritance-in-css
Thank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
July 9, 2015 at 3:25 am #643088Hi there
# You’ll need increase your css priority in your custom code.
It’ll require bit knowledge about CSS. Here are some document.
http://monc.se/kitchen/38/cascading-order-and-inheritance-in-css
Thank you,
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
July 9, 2015 at 3:25 am #741744Hi there
# You’ll need increase your css priority in your custom code.
It’ll require bit knowledge about CSS. Here are some document.
http://monc.se/kitchen/38/cascading-order-and-inheritance-in-css
Thank you,
Viet VuJuly 9, 2015 at 3:35 pm #576854pankajsharma
Where rule in .less code?
@media screen and (max-width: 992px) {
// ...
.article-intro .img-fulltext-right {// ...
width: 100% !important;
In Which .less file reassign (overwrite) rule?
That is what I ask!jooservices
I have read the document.
<blockquote>If !important is specified more than once for the same element, they will fall back to the normal cascading rules.</blockquote>
It did not help. It does not work.jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
July 9, 2015 at 4:09 pm #576863Hi there
In fact it should.
For sample
#a {color: red !important}
compare with
#parent #a {color: red !important}
In css selector priority it’ll have pointing. Count this we’ll know which one will be apply .
Also which one will be loaded first.
http://stackoverflow.com/questions/11178673/how-to-override-important
Please try with this online tool
http://specificity.keegan.st/
Thank you,
Viet Vu -
AuthorPosts
This topic contains 37 replies, has 4 voices, and was last updated by Adam M 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum