Welcome To Snipplr
Everyone's Recent CSS Snippets Tagged query
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
1079
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
1189
posted 9 years ago by jefferis
Now make a request to page.html?x=Hello:
console.log(getQueryVariable('x'));
0
925
posted 10 years ago by buda9
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
940
posted 15 years ago by jadedbat
« Prev 1 Next »