Ce ne sont pas vraiment des "boutons" au sens propre hein,
j'aurais peut être dû préciser ça avant...
Ce sont presque des "liens" :\
En gros quand on clic sur une des divs CTB, PFB ou DZB, ça deroule la page grace a un fichier JS
voici le code :
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8"/>
<title>Deezine.fr</title>
<meta http-equiv=Cache-Control content="Public"/>
<meta http-equiv=Cache-Control content="max-age=31536000"/>
<meta name=description content="Thibault Calabrese - graphiste et webdesigner"/>
<meta name=robots content="all" />
<meta name=keywords content="Deezine, design, designer, graphisme, graphiste, webdesign, webdesigner, web, freelance, indépendant, site, internet, HTML, CSS, JS, Javascript, charte graphique, identité visuelle"/>
<link rel="stylesheet" type="text/css" href="style.css" media="all">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/animation.js"></script>
</head>
<body>
<div id=HR>
</div>
<div id=CTB>
<img src="img/cth.png" width="32" height="32" alt="logo onglet contact">
<h1 class="cth">Contact</h1>
</div>
<div id=CT>
<div id=PFB>
<img src="img/pfh.png" width="32" height="32" alt="logo onglet portfolio">
<h1 class="pfh">Portfolio</h1>
</div>
<div id=PF>
</div>
<div id=DZB>
<img src="img/dzh.png" width="32" height="32" alt="logo onglet deezine">
<h1 class="dzh">Deezine</h1>
</div>
<div id=DZ>
</div>
<div id=BT>
</div>
</body>
</html>
+ le css
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
:focus{outline:0;}
a:active{outline:none;}
body{line-height:1;}
ol,ul{list-style:none;}
table{border-collapse:separate;border-spacing:0;}
caption,th,td{text-align:left;font-weight:normal;}
blockquote:before,blockquote:after,q:before,q:after{content:"";}
blockquote,q{quotes:"" "";}
html{margin:0;padding:0;}
img{border:0;}
@font-face {
font-family: 'webfont';
src: url('font/kgcallmemaybe-skinnywebfont.eot');
src: url('font/kgcallmemaybe-skinnywebfont.eot?#iefix') format('embedded-opentype'),
url('font/kgcallmemaybe-skinnywebfont.woff') format('woff'),
url('font/kgcallmemaybe-skinnywebfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html{font-family:webfont, trebuchet, verdana, arial;font-size:30px;}
body{background:#9cc2b2;}
h1{font-size:48px;display:inline;}
/*HEADER background*/
#HR{background:url(img/hr.png); height:125px; width:100%;}
/*BUTTONS images*/
#CTB img{padding:25px 0 0 120px;}
#PFB img{padding:25px 0 0 100px;}
#DZB img{padding:25px 0 0 110px;}
/*BUTTONS & CENTER*/
#CTB,#PFB,#DZB,#BT,#CT,#PF,#DZ{margin:0 auto 0 auto;width:970px;}
#CTB,#PFB,#DZB,#BT{background:url(img/buttons.png);height:60px;}
/*BUTTONS background*/
#CTB{background-position:0 5px;padding:5px 0 0 0;color:#bcb6a6;}
#CTB:hover{background-position:0 0px;padding:0 0 5px 0;color:#f3eddc;}
#PFB{background-position:0 -65px;padding:5px 0 0 0;color:#faf18e;}
#PFB:hover{background-position:0 -70px;padding:0 0 5px 0;color:#ffffc0;}
#DZB{background-position:0 -140px;color:#ffd082;cursor:default;}
.cth,.pfh{
cursor:pointer;
}
/*CENTER*/
#CT{height:200px;background:url(img/ct.png);display:none;}
#PF{height:180px;background:url(img/pf.png);display:none;}
#DZ{height:320px;background:url(img/dz.png);}
/*BOTTOM*/
#BT{height:65px;background:url(img/buttons.png)no-repeat;background-position:0 -200px;margin-bottom:240px;}
Modifié par lithiumsound (25 Jun 2012 - 19:18)