In this lesson, you found out why four rules on the work day notice you built in HTML did nothing. For each one, you selected the element, read the Styles pane, tried the fix in DevTools, and copied it into the file.
Follow Along
Rosa asked Kofi, one of the volunteers, for four changes to the work day notice: the title centered, the job descriptions not bold, the family-friendly job in italics, and its heading in the garden’s green. Kofi added these four rules at the end of events/events.css, after the .family-friendly rule from Rank Inline Styles and !important. Add them to the end of your own file to follow along:
events/events.css
h1 {
justify-content: center;
}
p {
font-weight: normal;
}
.family-friendly {
font-style: itallic;
}
h2.family-friendly {
color: oklch(0.447 0.116 152.7);
}
He saved, and nothing on the notice changed. CSS fails silently, so instead of guessing, select the element and ask four questions, in order.