Skip to content

Instantly share code, notes, and snippets.

View dave547's full-sized avatar

Dave dave547

View GitHub Profile
@dave547
dave547 / css-media-queries-cheat-sheet.css
Created March 30, 2016 03:02 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
<html>
<head>
<title>Checkbox</title>
<style>
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{
@dave547
dave547 / javascript
Created August 14, 2012 18:48
JAVASCRIPT: popup window
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
@dave547
dave547 / gist:2762796
Created May 21, 2012 15:01
JQUERY: SIAF
(function(){
})();
@dave547
dave547 / style.css
Created May 10, 2012 00:40
CSS: Opacity: opacity:0.8; filter:alpha(opacity=80); /* For IE8 and earlier */
@import url('reset.css');
@import url('typography.css');
html { background-color: #d2eeae;}
body {}
#wrapper { margin: 50px auto; width: 960px; min-height: 300px; background-color: #fff; border: 2px solid #fff;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
@dave547
dave547 / gist:2399648
Created April 16, 2012 15:58
WORDPRESS: Template Path
<?php bloginfo('template_url'); ?>/
@dave547
dave547 / gist:2217630
Created March 27, 2012 16:20
HTML5: template
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Template</title>
<meta name="description" content="">
<link rel="stylesheet" href="css/style.css">
<!-- IE6-8 support of HTML5 elements --> <!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@dave547
dave547 / page-custom.php
Created March 21, 2012 03:01
WORDPRESS: header include code
<?php include(TEMPLATEPATH.'/header_custom.php'); ?>
@dave547
dave547 / gist:2127114
Created March 19, 2012 21:06
JAVASCRIPT: LINK IN HEADER
<script type="text/javascript" src="script.js"></script>
@dave547
dave547 / gist:2118858
Created March 19, 2012 16:48
HTML: Blank Space
&nbsp;