Your college's notice page has one line that must stand out: "Admit cards are ready." You open the stylesheet, add .urgent { color: red; }, and refresh. The line stays black. You write the rule again, lower down. Black. You make the font bigger, and now it is big and black. In the end you type !important after the red, the line turns red at last, and then the footer rule you wrote last week quietly stops working, and you have no idea why.
None of this is bad luck. When two rules disagree, the browser does not pick one at random or by mood. It runs the same fixed tie-break every time, and once you know that tie-break you can say which rule wins before you refresh. The same goes for the other small mysteries of CSS: a box given width: 300px that turns out wider than 300, a menu with z-index: 9999 that still hides behind a banner, a gap between two paragraphs that is 30 pixels when you expected 50.
The last chapter taught you how CSS reaches a page and how a rule is shaped. This one teaches how it behaves. By the end you will be able to write a selector that picks exactly the elements you mean, and say why it picks them. You will measure which of two rules wins as a three-number score, and name the four steps the browser takes when scores tie.
You will work out the true size of a box under both box-sizing models, say when two vertical margins merge, and write lengths in px, em, rem, % and vw. You will write colours in hex, rgb and hsl, and set text and fonts. You will place an element with display, position and z-index, and know what each can and cannot do. And you will lay out a whole page with Flexbox and Grid, make it adapt to a phone with the viewport meta tag and media queries, and recognise Bootstrap, Tailwind and Sass.