Answere was helpful:
if screen resolution is less than x append css
You can do this completely with CSS 3 with the @media command.
**@media (max-width:960px) { css... }
@media (min-width: 960px) {css ...} // nothing with a screen size less than 960px **
Jason Witt makes a good point, it is only CSS 3, so it will not work with older browsers (although it should work with all modern browsers). You can also edit the screen or device.
@media screen {.nomobile {display: block; }} // desktops / laptops
@media handheld {.nomobile {display: none; }} // mobile devices Or you can assume that mobile devices will have a smaller width, and continue with this.
source share