DEV Community

Discussion on: CSS can help improve your HTML⁉ - Ep 1: alt attributes

Collapse
 
doekenorg profile image
Doeke Norg • Edited

Nice one. Reminds me of using border: 1px solid red as a debug tool.

This could be nice in a separate stylesheet for development environment only. Don't want to broadcast I'm an idiot on my site 😁

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Oh very much a development only stylesheet!

I personally have it linked to my environment settings so I can't accidentally include it in production!

However the second part of this system is for production and development as it just stops developers doing things wrong!

For a simple example: <div class="btn-large" just won't work as the selector is for button.btn-large, a.btn-large!

More on that in the next post! 😉❤