Consequences of CSS Style Conflicts


show more What happens when styles conflict? provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

What happens when styles conflict?

Unless every page you create only holds a single paragraph, you are eventually going to have to deal with styles that conflict with one another. Anytime you have multiple rules that target the same element you have conflicting styles, and now on the surface it would seem like this would be pretty easy to avoid: just don't write rules that target the same element, right? Well, the truth is that as your pages get more complex, it's impossible to avoid it. In fact, there are going to be times when you want styles to conflict with one another, as a way of writing styles of little bit more efficiently.

So in this chapter we're going to explore why style conflict, what happens when they do, and then how avoid conflicts that you don't want and how to use them correctly when you do. I want to start by just looking at the exactly what happens when styles do conflict with one another. So I've got the conflicts.htm file from 03_01 folder, and that is in the Chapter 3 directory. A...

What happens when styles conflict?
Video duration: 4m 0s 8h 52m Beginner

Viewers:

What happens when styles conflict? provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

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