Why is the CSS class designed so that it can not contain another CSS class?
source link: https://www.codesd.com/item/why-is-the-css-class-designed-so-that-it-can-not-contain-another-css-class.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Why is the CSS class designed so that it can not contain another CSS class?
Why one CSS class can't contain another CSS class e.g.
.parentCSS width:100% childCSS
I really have many duplicate entries in my file because of this
Somewhere on the aspx page (one control many CSS classes) and somewhere in the CSS file (one CSS class many duplicate attributes).
Any suggestion to write proper CSS if CSS nesting is unachievable would be very helpful.
Because CSS wasn't build that way, it doesn't support nesting, however there is a plugin http://lesscss.org/ that allow you to create stylesheets in a more flexible way.
LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions. LESS runs on both the client-side (Chrome, Safari, Firefox) and server-side, with Node.js and Rhino.
Related Articles
Pagination of the Soundcloud API - does the 8000 shift limit mean that you can not get an entire list of more than 8000?
Why does the background image work in one place but not in another?
Java - Actionlistener showing the error for a reason that I can not see
How to mark the fields of integrated structures that you can not modify?
The Facebook logon in laravel 5.2 can not contain the session after the redirect
Why was the String class designed this way?
Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework namespace and not in the Core package?
Why are the final classes ready for use with CDI?
Why does the Thread class do not support the clone method?
Why is the CSS load of the node.js application loaded in my IDE but not on a localhost?
Iam create a poker game in Flash AS3, what are the best design templates that I can use?
SQL constraint so that there can not be rows with the same column A but different column values B?
an example on the issue of the order of execution of the callback nodejs that I can not understand
How do I access the user interface that applescript can not access?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK