Created
June 18, 2011 09:42
-
-
Save bchhun/1032957 to your computer and use it in GitHub Desktop.
Sticky footer html base
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Hôtel des commandants</title> | |
<link rel="stylesheet" href="css/main.css" media="screen" /> | |
<link rel="stylesheet" href="css/print.css" media="print" /> | |
<!--[if IE 8]> | |
<link rel="stylesheet" href="css/ie8.css" media="screen" /> | |
<![endif]--> | |
<!--[if IE 7]> | |
<link rel="stylesheet" href="css/ie7.css" media="screen" /> | |
<![endif]--> | |
<!--[if IE 6]> | |
<link rel="stylesheet" href="css/ie6.css" media="screen" /> | |
<![endif]--> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="stickyfooter"> | |
<div class="wrapper header"> | |
<div class="inner-wrapper"> | |
</div> <!-- .inner-wrapper --> | |
</div> <!-- .wrapper.head --> | |
<div class="wrapper body"> | |
<div class="inner-wrapper"> | |
</div> <!-- .inner-wrapper --> | |
</div> <!-- .wrapper.body --> | |
</div> <!-- .sticky-footer --> | |
<div class="wrapper footer"> | |
<div class="inner-wrapper"> | |
</div> <!-- .inner-wrapper --> | |
</div> <!-- footer --> | |
</body> | |
</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
@import url("reset.less"); | |
body { | |
} | |
.wrapper {} | |
.inner-wrapper { | |
width: 912px; margin:auto; | |
} | |
.header { | |
.inner-wrapper { | |
} | |
} | |
.body { | |
.inner-wrapper { | |
} | |
} | |
@height-footer: 128px; | |
.footer { | |
height: @height-footer; | |
.inner-wrapper { | |
} | |
} | |
/* sticky footer */ | |
html, body {height: 100%;} | |
#stickyfooter {min-height: 100%;} | |
.body {overflow:auto;padding-bottom: @height-footer;} | |
.footer { | |
position: relative;margin-top: -@height-footer;height: @height-footer;clear:both; | |
.inner-wrapper { | |
height: @height-footer; | |
} | |
} |
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
@base_font: "Arial"; | |
@base_font_color: black; | |
html, body, div, object, | |
h1, h2, h3, h4, h5, h6, p, ul, ol, | |
dl, dt, dd, blockquote, address, | |
img, sub, sup, small, big, abbr, acronym, | |
form, fieldset, legend, label, | |
del, ins, dfn, cite, code, var, samp, kbd, | |
table, caption, tbody, tfoot, thead, tr, th, td | |
{ margin: 0; padding: 0; | |
border: 0; outline: 0; | |
font-weight: normal; | |
font-style: normal; | |
font-size: 1em; | |
font-family: inherit; | |
vertical-align: baseline; | |
background: transparent } | |
:focus, :active { outline: 0; } | |
html { height: 100%; font-size: 100.01% } | |
body { height: 100%; font-size: 62.5% } | |
/* Common | |
------------------------------------------*/ | |
acronym, abbr { cursor: help; letter-spacing: 1px; | |
border-bottom: 1px dashed } | |
ul, ol { margin-bottom: 1.5em } | |
ul { list-style-type: square } | |
ol { list-style-type: decimal } | |
li { margin: 0 0 0 1.5em } | |
li ul { margin-bottom: 0 } | |
small { font-size: .85em } | |
big { font-size: 1.15em } | |
sup { font-size: .85em; position: relative; bottom: .3em } | |
sub { font-size: .85em; position: relative; bottom: -.2em } | |
legend { } | |
label { cursor: default } | |
table { margin: 0 auto 1.5em; border-collapse: collapse } | |
table th { vertical-align: middle; font-weight: bold } | |
table td, | |
table th { /*border: 1px solid #000;*/ padding: .1666em .4166em } | |
/* Typography | |
------------------------------------------*/ | |
h1, h2, h3, h4, h5, h6 | |
{ font-family: @base_font;} | |
p, pre, label, caption, th, td, dt, dd, | |
select, ul, ol, address, cite, img, span, a, input, textarea | |
{font-family: @base_font;} | |
blockquote, q {font-family: @base_font;} | |
tt, code, samp {font-family: @base_font;} | |
h1, h2, h3, h4, h5, h6 | |
{ font-weight: normal; color: @base_font_color; } | |
h1 { font-size: 2.6em; line-height: 1.2307em; margin-bottom: .5em } | |
h2 { font-size: 1.8em; line-height: 1.3333em; margin-bottom: .6666em } | |
h3 { font-size: 1.4em; line-height: 1.1428em; margin-bottom: 1.1428em } | |
h4, h5, h6 { font-size: 1.1em; line-height: 1.4545em; margin-bottom: 1.4545em } | |
p, pre, label, dt, dd, | |
select, blockquote, address, form | |
{ font-size: 1em; line-height: 1.4545em; margin-bottom: 1.4545em } | |
ul, th, td, caption, img | |
{ font-size: 1em; line-height: 1.4545em } | |
li ul { font-size: 1em } | |
/* Links | |
------------------------------------------*/ | |
a:link, a:visited, a:hover, a:active | |
{ text-decoration: underline; color: @base_font_color; } | |
a:hover { /*text-decoration:underline;*/ border-bottom:none; } | |
a img { border: none } | |
.clear {clear:both;font-size:0;height:0;overflow:hidden;display:block;float:none !important;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment