Presented by Hugh Smith on 01/22/2018 2:00pm
Some time in the 199os specifications for CSS (cascading style sheets) were drafted and !important declarations were introduced as a way that would help developers and users easily override normal specificity when making changes to their stylesheets. It's usage, however, has spread massively and is now at a point of being overused negating the proper use of specificity.
Hugh explains why it is not a great practice to use the CSS markup of !important and shows us the process to be able to identify the specificity of an element as a means to avoid using !important.
CSS is a language used to detail the style or presentation of a website. Basically, it is what controls how things look to the reader.
When you make a change to your website’s CSS style sheet, it automatically applies to every page of your website. The bigger your website, the more time CSS saves you. Most importantly, it also ensures that your web pages have consistent styling throughout your site.
Most people that use CSS on a daily basis don’t know enough about CSS specificity to solve their problems without using the !important suffix. Of course, it’s not always a bad idea, sometimes it’s necessary.
Presenter Bio: Hugh Smith
Hugh Smith has been doing freelance work and building his own successful web development (among other things) business for years. Hugh is not from Australia. The Oz comes from Hugh's roots in Kansas, and though he also says that he is not a wizard, we're here to tell you that this is one man behind the curtain you're going to want to pay attention to.