CSS Mastery (3rd Edition) – Advanced Web Standards Solutions [PDF]

PDF Preview:

CSS Mastery - Advanced Web Standards Solutions - www.indianpdf.com_ - Free book novel - download online

PDF Title : CSS Mastery – Advanced Web Standards Solutions
Edition : 3rd Book Edition
PDF Content : 12 Chapters (full)
Total Page : 428 Pages
Author: Andy Budd
PDF Size : 7.4 MB
Language : English
Rights : springer.com
PDF Link : Available

Here on this page, we have provided the latest download link for CSS Mastery – Advanced Web Standards Solutions PDF. Please feel free to download it on your computer/mobile. For further reference, you can go to springer.com

CSS Mastery – Advanced Web Standards Solutions – Book

The first thing to note is the use of an id in the selector. This prevents the reuse of this selector anywhere else on the page, which is unnecessarily limiting. There is nothing wrong with using id attributes per se: they are great for in-page links or JavaScript hooks.

There’s nothing preventing you from using them as CSS selectors either, but the high specificity makes it troublesome to override any variations of the rule. Something like a message component is likely to be both overridden and repeated on the page, so in this case, an ID is definitely a problem.

Furthermore, we’ve added a completely unnecessarily div qualifier to the selector, which does nothing but increase the specificity even more in this case. It’s common to see element selectors used together with id s or classes in this way—usually, it’s a result of trying to override some all-too specific rule somewhere else. Often, the solution is not to escalate the specificity “arms race” but to rethink your naming strategy.

Another thing to note is the id attribute name: #pink-box is describing a specific property of the alert message box. We could decide to change the warning message to a white box with a red icon inside instead, and the class name would no longer make sense.

CSS Mastery – Advanced Web Standards Solutions PDF

Why you should buy from amazon? It is always better to buy books in order to support the authors and publishers. As the hard-working writer diligence should be paid off.

Know more about our initiative

Help us to serve you better. Rate this PDF
[ Total: 1 | Average: 5 ]

If you find this PDF violating your rights, and you want to unpublish it, Please Contact-Us / DMCA.