Making things important


show more Making things important provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design show less
please wait ...

Making things important

In this video, we're going to talk about making things important, and the best way to introduce that is to present you with a situation you might run into actually more than once in your styling career. Suppose here that this h1 that says about tea history, with the white background, we want to change that background to green. So let's make a stab of that, let's say h1 background green go back over, hit Reload, wait a minute, nothing happened.

Something 's gone wrong. Here's what I'm going to do to find out what's gone wrong is what you think. I'm going to say important, so not only do I want this h1s background to be green, but it is important to me that it's background be green and we'll go back, go hit Reload and green it is. what this tells me is that somewhere in my style sheet I have the rule that's setting that white background, has a higher specificity than just plain old h1, so I'm using important as a diagnostic tool here in affect....

Making things important
Video duration: 4m 32s 6h 8m Intermediate

Viewers:

Making things important provides you with in-depth training on Web. Taught by Eric Meyer as part of the CSS Web Site Design

Subject:
Web
Software:
CSS
Author:
please wait ...