jrvorhees / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Subtle: Class vs. id #2

Open blerude opened 6 years ago

blerude commented 6 years ago

https://github.com/jrvorhees/prj-rev-bwfs-dasmoto/blob/master/DasmotosArts/index.html#L8-L9

For unique selectors like these two that are only applied once each, you can make them ids instead of classes. Classes are for multiple applications (like the price class here), and ids are used to indicate that the element is one-of-a-kind.

jrvorhees commented 6 years ago

That makes sense, I was trying to stay more generic and only go more specific if need be, but your logic makes perfect sense here, thanks!