Home › Forums › CSS › Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery… › Re: Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery…
May 16, 2013 at 9:40 pm
#135372
Alen
Participant
Modernizr is a great tool. I use it in all my projects.
This is how html markup looks when JavaScript is OFF:
In your CSS you would target users with JavaScript off, like so `.no-js`.
This is how html markup looks when JavaScript is ON:
The classes that get added depend on what features users browser supports, so you can hook into something like `flexbox` and provide enhanced experience.
You can custom build Modernizr, supporting only features you need. This decreases file size. Modernizr also provides HTML5shiv and many other things.