Valeruu / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Using ID's for unique styles #1

Open zannain opened 6 years ago

zannain commented 6 years ago

When a class attribute is not going to be used more than once, then an id attribute is the way to go. This helps ensure that unique styles are not being overridden since they are the most specific of CSS selectors available to you.

<!-- if brushes is not going to be used more than once, an ID is the appropriate selector of choice -->
<div class="brushes"></div>
<div id="brushes"></div>
Valeruu commented 6 years ago

I think i used the class an ad id attributes in the Broadway project. I only used the id attribute to style the copy right logo. I used classes to style the font size and weight.