Skip to content

Instantly share code, notes, and snippets.

@hodadgists
hodadgists / HTML: Basic HTML Structure
Created June 11, 2013 00:26
HTML: Basic HTML Structure
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/css.css">
</head>
<body>
</body>
@hodadgists
hodadgists / Zend Db Query
Created June 11, 2013 01:32
ZEND: DB Query
//dumpq($select->__toString());
try {
$invoicesRowSet = $invoicesTable->fetchAll($select);
} catch (Exception $e) {
$e->handle_err();
}
unset($select);
dump($invoicesRowSet);
@hodadgists
hodadgists / CSS: Transparency cross-browser
Created June 11, 2013 16:58
CSS: Transparency cross-browser
.transparent {
filter: alpha(opacity=50); /* internet explorer */
-khtml-opacity: 0.5; /* khtml, old safari */
-moz-opacity: 0.5; /* mozilla, netscape */
opacity: 0.5; /* fx, safari, opera */
}
@hodadgists
hodadgists / CSS: Individual Round Corners
Created June 11, 2013 17:00
CSS: Individual Round Corners
#container {
-webkit-border-radius: 4px 3px 6px 10px;
-moz-border-radius: 4px 3px 6px 10px;
-o-border-radius: 4px 3px 6px 10px;
border-radius: 4px 3px 6px 10px;
}
@hodadgists
hodadgists / CSS: General Media Queries
Created June 11, 2013 17:01
CSS: General Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@hodadgists
hodadgists / CSS: Modern Font Stacks
Created June 11, 2013 17:03
CSS: Modern Font Stacks
/* Times New Roman-based serif */
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
/* A modern Georgia-based serif */
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif," "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
/*A more traditional Garamond-based serif */
font-family: "Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif;
/*The Helvetica/Arial-based sans serif */
@hodadgists
hodadgists / CSS: Selection Hilight Custom Color
Created June 11, 2013 17:10
CSS: Selection Hilight Custom Color
::selection { background: #e2eae2; }
::-moz-selection { background: #e2eae2; }
::-webkit-selection { background: #e2eae2; }
@hodadgists
hodadgists / CSS: Hiding H1 Text for Logo
Created June 11, 2013 17:11
CSS: Hiding H1 Text for Logo
@hodadgists
hodadgists / CSS: Polaroid Image Border
Created June 11, 2013 17:12
CSS: Polaroid Image Border
img.polaroid {
background:#000; /*Change this to a background image or remove*/
border:solid #fff;
border-width:6px 6px 20px 6px;
box-shadow:1px 1px 5px #333; /* Standard blur at 5px. Increase for more depth */
-webkit-box-shadow:1px 1px 5px #333;
-moz-box-shadow:1px 1px 5px #333;
height:200px; /*Set to height of your image or desired div*/
width:200px; /*Set to width of your image or desired div*/
}
@hodadgists
hodadgists / CSS: Anchor Link Pseudo Classes
Created June 11, 2013 17:13
CSS: Anchor Link Pseudo Classes