Welcome To Snipplr


Everyone's Recent CSS Snippets Tagged query



« Prev 1 Next »
This is code you put in a CSS file. It queries the size of the screen using the parameters passed in. If its true, it then applies the CSS
0 1084 posted 9 years ago by heathbo
Unlike linked style sheets, it is necessary to enclose CSS in Headers in a "style type". This example media query is for screens under 1024 (tablets and phones) to make sure the images do not extend beyond the layout.
0 1194 posted 9 years ago by jefferis
Now make a request to page.html?x=Hello: console.log(getQueryVariable('x'));
0 929 posted 10 years ago by buda9
A couple of useful media queries...
1 1079 posted 11 years ago by iroybot
Our theme's range of media queries
0 858 posted 12 years ago by vanseijen
0 778 posted 13 years ago by tpryan
0 727 posted 13 years ago by tpryan
This is sometimes not the best solution to a server caching your css files. But if you want to force a stubborn server to serve the most recent css file to the browser this seems to work. Could slow things down a touch, but for small css files not...
1 946 posted 15 years ago by jadedbat
« Prev 1 Next »