This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***** Selector Hacks ******/ | |
/* IE6 and below */ | |
* html #uno { color: red } | |
/* IE7 */ | |
*:first-child+html #dos { color: red } | |
/* IE7, FF, Saf, Opera */ | |
html>body #tres { color: red } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie9" lang="en"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ErrorDocument 400 /errors/badrequest.html | |
ErrorDocument 401 /errors/authreqd.html | |
ErrorDocument 403 /errors/forbid.html | |
ErrorDocument 404 /errors/notfound.html | |
ErrorDocument 500 /errors/server.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
* {margin: 0; padding: 0;} | |
#page {display:table; overflow:hidden; margin:0px auto;} | |
*:first-child+html #page {position:relative;} /*ie7*/ | |
* html #page {position:relative;} /*ie6*/ | |
#content_container {display:table-cell; vertical-align: middle;} | |
*:first-child+html #content_container {position:absolute; top:50%;} /*ie7*/ | |
* html #content_container {position:absolute; top:50%;} /*ie6*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cf:before, .cf:after {content:""; display:table;} .cf:after {clear:both;} .cf {zoom:1;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Negative margins are exactly half the height and width, which pull the element back into perfect center. | |
Only works with elements of a fixed height/width. | |
*/ | |
.center { | |
position: absolute; | |
left: 50%; | |
top: 50%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.amp { | |
font-family: Baskerville, 'Goudy Old Style', Palatino, 'Book Antiqua', serif; | |
font-style: italic; | |
font-weight: normal; | |
} | |
</style> | |
<h1>Script <span class="amp">&</span> Style</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Mozilla based browsers */ | |
::-moz-selection { | |
background-color: #FFA; | |
color: #000; | |
} | |
/* Webkit based browsers */ | |
::-webkit-selection { | |
background-color: #FFA; | |
color: #000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.triangle-up { | |
width: 0; | |
height: 0; | |
border-left: 5px solid transparent; | |
border-right: 5px solid transparent; | |
border-bottom: 5px solid black; | |
} | |
.triangle-down { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Times New Roman-based stack */ | |
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; | |
/* Modern Georgia-based serif stack */ | |
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; | |
/* Traditional Garamond-based serif stack */ | |
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; | |
/* Helvetica/Arial-based sans serif stack */ |
OlderNewer