You want enabling CSS selectors, not disabling ones
css-tricks.com
You want enabling CSS selectors, not disabling ones
1–10 of 120 posts
Re: You want enabling CSS selectors, not disabling ones
#2What if you want margin: 5px as the general rule and margin: 10px on the last element. Is 10px a disabling selector?
Re: You want enabling CSS selectors, not disabling ones
#3If you can build something step-by-step with a clear hierarchy and easy to trace causes and effects, the result seems to be more convincing/reliable than a process involving a bunch of logical roundabouts. Of course, if that's at all possible for a problem at hand.
Re: You want enabling CSS selectors, not disabling ones
#4Re: You want enabling CSS selectors, not disabling ones
#5I don't see why 0 should be treated as special value. Initial should be used if meant to "disable" it. What if you want margin: 5px as the general rule and margin: 10px on the last element. Is 10px a disabling selector?
Re: You want enabling CSS selectors, not disabling ones
#6Article: https://alistapart.com/article/axiomatic-css-and-lobotomized...
Prev. submissions: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
Re: You want enabling CSS selectors, not disabling ones
#7Re: You want enabling CSS selectors, not disabling ones
#8https://ashok-khanna.medium.com/rounded-tables-an-elusive-dr...
Re: You want enabling CSS selectors, not disabling ones
#9gap? Is this new? I've been waiting for years for CSS to finally support something like that. Always thought it was weird that I had to mess with margins (and last-child hacks) to get a proper gap between items in a container.
Re: You want enabling CSS selectors, not disabling ones
#10I don't see why 0 should be treated as special value. Initial should be used if meant to "disable" it. What if you want margin: 5px as the general rule and margin: 10px on the last element. Is 10px a disabling selector?
There might be other rules, browser, user that should not over the 5px rule