From the course: CSS: Refactoring Style Sheets

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Ignoring warnings

Ignoring warnings - CSS Tutorial

From the course: CSS: Refactoring Style Sheets

Start my 1-month free trial

Ignoring warnings

- [Instructor] In between the previous movie and this one, I grabbed all the ID or element selectors, and swapped 'em out for class selectors both in the Style Sheet and in index.html, and that resolved some of the remaining cascade issues, but you can see there are still some issues here in the Style Sheet. If I scroll down, we have 'em right here, and if we hover over it, it says, expect the selector testimonials quote to come before selector testimonials block quote quote, and that actually makes sense. I'm gonna grab this rule here, cut it out, and then find here where the testimonials block quote quote is defined. I'll actually put this on top here so that we don't have that error anymore. And this is pretty typical, you'll find as you go through your Style Sheet, that you may have placed a rule down further down in the Style Sheet than it should be and Stylelint will help you organize where these elements should appear. Now the problem is, in some cases, as is apparent here, we…

Contents