rendered paste bodytient le html:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"> <!-- Indique que le charset est UTF-8 -->
<link hreff="style.css" rel="stylesheet" type="text/css"> <!-- Donc n'oubliez pas de créer la page "style.css" qui comportera le css -->
<title>Mon site a onglets</title> <!-- Le titre de la page qui s'affiche sur la bordure de fenêtre -->
</head>
<body>
<div class="top">
<p class="title">Mon site perso !</p>
</div>
<div class="cadreonglets">
<ul class="rubriques">
<li><a href="onglet01.html"> Onglet 01 </a></li>
<li><a href="onglet02.html"> Onglet 02 </a></li>
<li><a href="onglet03.html"> Onglet 03 </a></li>
</ul>
</div>
<div class="contenu">
<h1>Blablabla</h1>
<p> Mon site avec des onglets est super beau. Mon site avec des onglets c'est le meilleur. T'es jaloux hein.</p>
</div>
</body>
</html>
et voici le css:
body {
background-color: #000000;
width: 700px;
color: #ffffff;
}
.top {
background-color: #9d0000;
width: 700px;
height: 50px;
}
.title {
font-size: 30px;
color: #000000;
font-weight: bold;
margin-left: 16px;
margin-top: 6px;
padding: 8px;
text-align: center;
}
.cadreonglets {
background-color: #9d0000;
width: 700px;
height: 29px;
}
.rubriques {
list-style-type: none;
margin: 0;
font-size: 13px;
}
.contenu {
padding: 10px;
}
li {
float: right;
margin: 2px 2px 0 2px;
border-top: 1px solid black;
border-left: 1px solid black;
border-right: 1px solid black;
background-color: #9d0000;
}
a {
display: block;
color: white;
text-decoration: none;
padding: 4px;
}
a:hover {
background-color: #000000;
color: #9d0000;
}