3 ms·
With traditional css you'd most likely have a class for all the relevant attributes. <style> .someClass { display: block; color: black; } </style> <di
by Akronymus 3y ago
With traditional css you'd most likely have a class for all the relevant attributes.
<style>
.someClass {
display: block;
color: black;
}
</style>
<div class="someClass">...</div>
- matheusmoreira 3y agoOf course. That's how I learned CSS and how I wrote the CSS for my site. Apparently that's not how things are done these days. People have one class for every property and value combination now and essentially write the entire class inside the class="..." attribute. Can't understand why.