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 42 posted 4 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 41 posted 5 years ago by jefferis
Now make a request to page.html?x=Hello: console.log(getQueryVariable('x'));
0 28 posted 5 years ago by buda9
A couple of useful media queries...
1 42 posted 6 years ago by iroybot
I needed a quick way to target high-resolution graphics. Here was my final solution
0 30 posted 7 years ago by chrisaiv
Our theme's range of media queries
0 32 posted 7 years ago by vanseijen
0 14 posted 8 years ago by tpryan
0 12 posted 8 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 22 posted 11 years ago by jadedbat
« Prev 1 Next »