I’ve found a border on broider that I’d like to use, but I don’t know where it should go on my stylesheet. Below is the broider code, plus the code for my header:
Hi, @manatee. Now that you’ve got the .broider class in your stylesheet, you need to apply it to your HTML like this:
<div class="broider">
<p>*meow!* This is a test of the Emergency Smudge Haz a Hungry System. If Smudge really had a hungry, you'd hear about it.</p>
</div>
You can use class on any HTML element that you’d use in <body>, and you can use it in <body> as well.
Okay. So should I apply it in addition to the CSS classes certain elements already have? Show me exactly what my header class would look like with the broider class applied.
I think that the rules specified in the .broider class will take precedence over those specified for the <header> element, but if you want to be sure you should remove the border-* stuff from the header selector in your stylesheet.
Okay, I’ll try that in a little while and see if it works. But what about applying the broider stuff to named classes that have, say, display:flex; applied to them?
@hermit’s got you covered. I would only add that the order in which you specify classes might affect how each class’ rules are applied.
In @hermit’s example one might expect that the .navbar class would be applied before .broider, so if both classes specify border-width then the border-width setting in .broider would override the one in .navbar. If this isn’t what you want, you can add !important to the border-width setting in .navbar.