DEV Community

Discussion on: Why you should use semicolons in spite of ASI

Collapse
 
osde8info profile image
Clive Da

OMG ; are optional in CSS ! must learn those rules ASAP (as an ex PHPer i hate ;)

Collapse
 
lamka02sk profile image
lamka02sk

Only after the last property and it is not a good idea to leave them out. Your colleagues are going to eat you alive.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Here is how that works

.not-in-cansis {
    background: red;
    color: green
}

But seriously don't.
Collapse
 
osde8info profile image
Clive Da

too late i LOVE it i will write some prettier rules straight away