Created
April 8, 2010 10:49
-
-
Save cogentParadigm/359980 to your computer and use it in GitHub Desktop.
HTML/CSS Templates
This file contains hidden or 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
/* Standard CSS */ | |
/*********** COMMON ***********/ | |
*{margin:0;padding:0} | |
html{font-size:100%} | |
a img{border:none;position:relative;top:2px} | |
body{font-size:12px;text-align:center;color:#666} | |
/*********** FONTS ***********/ | |
body, input{font-family: Helvetica, Arial, sans-serif} | |
.codeblock{font-family:monospace} | |
/*********** STRUCTURE ***********/ | |
#shell, .shell{width:985px;margin:0 auto;position:relative;text-align:left} | |
/*********** HEADERS ***********/ | |
h1{position:absolute;top:0px;left:0px;font-size:34px;height:143px;width:332px} | |
h1 span{height:143px;width:332px;display:block;background:url(../images/logo.png) no-repeat;text-indent:-99999px} | |
h2{font-size:20px;margin:15px 0;clear:both} | |
h3{padding:5px 0;font-weight:normal;font-size:19px;letter-spacing:1px} | |
h4{font-size:17px;margin-top:15px} | |
/*********** NAV ***********/ | |
.hnav{list-style-type:none;width:100%;margin:0} | |
.hnav li{float:left;padding:0} | |
/*********** LISTS ***********/ | |
ul{margin-left:30px} | |
#content ul{margin-bottom:10px} | |
#sidebar ul{margin-left:0px;} | |
ul.decimal{list-style-type:decimal} | |
/*********** TEXT ELEMENTS ***********/ | |
p{margin-bottom:10px;line-height:20px} | |
/*********** CLASSES ***********/ | |
.hidden{display:none} | |
.left{float:left} | |
.right{float:right} | |
.clear{clear:both} | |
.inline{display:inline} | |
.center{text-align:center} | |
.article{margin:15px 0} | |
.codeblock{border:1px solid #222;padding:10px;margin:5px 0;width:50%;font-style:italic} | |
.note{font-size:10px} | |
.green{color:#494} | |
.red{color:#C00} | |
.button{padding:3px 5px;border:none;color:#fff;background:#494;font-size:11px;font-weight:bold;text-decoration:none;cursor:pointer} | |
.big.button{font-size:36px;font-weight:normal;margin-right:5px;padding:5px 10px} | |
/*********** FORMS ***********/ | |
input.text{padding:2px;border:1px solid #555;font-size:13px} | |
select{padding:2px;font-size:10px;} | |
label{display:block;font-size:11px;font-weight:bold} | |
input.left.checkbox{margin-right:5px} | |
.error{display:block;font-size:9px;font-weight:bold;color:#C00} | |
.field{margin-bottom:10px;padding:15px} | |
fieldset{border:none;margin-bottom:15px} | |
legend{font-weight:bold;padding:2px 5px} | |
input.link{background:none;border:none;position:relative;top:-1px;cursor:pointer} | |
input.link:hover{text-decoration:underline} | |
/*********** LINKS ***********/ | |
a{color:#494;text-decoration:none} | |
a:hover{text-decoration:underline} | |
a.button{padding:4px 5px} | |
a.big.button{padding:6px 10px} | |
/*********** TABLES ***********/ | |
.lister{table-layout:fixed;width:100%;border-spacing:0;border:1px solid #999;margin-bottom:20px} | |
.lister th{padding:5px} | |
.lister td{border-bottom:1px solid #999;padding:5px;vertical-align:top} | |
.row-actions{list-style-type:none;margin:10px 0;visibility:hidden} | |
.row-actions li{float:left;font-size:10px;border-left:1px solid #999;padding:0px 5px} | |
.row-actions li.first{border-left:0;padding-left:0} | |
td:hover .row-actions{visibility:visible} | |
/*********** CORNER ROUNDING ***********/ | |
.button, .lister, select, input.text{border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px} | |
.field{border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px} | |
.big.button{border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px} |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>Fixed Width</title> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" media="screen" href="default.css" /> | |
</head> | |
<body> | |
<div id="shell"> | |
<h1><a href="#"><span>Logo Text</span></a></h1> | |
<ul id="nav"> | |
<li><a href="#">Nav Item</a></li> | |
</ul> | |
<div id="main"> | |
<div id="content"> | |
</div> | |
<div id="sidebar"> | |
</div> | |
</div> | |
<ul id="footer"> | |
<li><a href=""></a></li> | |
</ul> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>Flexible Width</title> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" media="screen" href="default.css" /> | |
</head> | |
<body> | |
<div id="header"> | |
<h1><a href="#"><span>Logo Text</span></a></h1> | |
<ul id="nav"> | |
<li><a href="#">Nav Item</a></li> | |
</ul> | |
</div> | |
<div id="main"> | |
<div id="content"> | |
</div> | |
<div id="sidebar"> | |
</div> | |
</div> | |
<ul id="footer"> | |
<li><a href=""></a></li> | |
</ul> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
<head> | |
<title>Hybrid</title> | |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" media="screen" href="default.css" /> | |
</head> | |
<body> | |
<div id="header"> | |
<div class="shell"> | |
<h1><a href="#"><span>Logo Text</span></a></h1> | |
<ul id="nav"> | |
<li><a href="#">Nav Item</a></li> | |
</ul> | |
</div> | |
</div> | |
<div id="main"> | |
<div class="shell"> | |
<div id="content"> | |
</div> | |
<div id="sidebar"> | |
</div> | |
</div> | |
</div> | |
<div id="footer"> | |
<ul class="shell"> | |
<li><a href=""></a></li> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment