JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<link rel="stylesheet" href="style.css" />
<title>GeneRally HotLap Competition</title>
</head>
<body>
<div id="bloc_page">
<header>
<div id="titre_principal">
<img src="fonds/logo_GR.jpg" alt="Logo de Generally" id="logo" />
<h1>GeneRally HotLap Competition</h1>
</div>
</header>
<div id="banniere_image">
<div id="banniere_description">
Organisation, règlements et résultats de compétitions de GeneRally
</div>
</div>
<div id="menu_nav">
<li><a href="#">Accueil</a></li>
<li><a href="#">Règles</a></li>
<li><a href="#">Type de course</a></li>
<li><a href="#">Compétitions</a>
<ul>
<li><a href="#">Compétition 01</a></li>
<li><a href="#">Compétition 02</a></li>
</ul>
</li>
<li><a href="#">Palmares</a></li>
<li><a href="#">Meilleurs temps</a></li>
</div>
<div id="section_1">
<article>
<h1>Circuit</h1>
<p align="justified">Lorem ipsum dolor sit amet...
Vivamus sed libero nec mauris pulvinar facilisis ut non sem...
Phasellus ligula massa, congue ac vulputate non, dignissim at augue...</p>
</article>
</div>
<div id="section_2">
<article>
<h1>Temps</h1>
<p>Lorem ipsum dolor sit amet...</p>
<p>Vivamus sed libero nec mauris pulvinar facilisis ut non sem...</p>
<p>Phasellus ligula massa, congue ac vulputate non, dignissim at augue...</p>
</article>
</div>
<div id="section_3">
<article>
<h1>Vidéo</h1>
<p>Lorem ipsum dolor sit amet...</p>
<p>Vivamus sed libero nec mauris pulvinar facilisis ut non sem...</p>
<p>Phasellus ligula massa, congue ac vulputate non, dignissim...
CSS
/* Eléments principaux de la page */
body
{
background: url('fonds/');
font-family: verdana, Arial, sans-serif;
color: #d4b440;
}
#bloc_page
{
width: 1024px;
margin: auto;
border-width: thin;
border-style: solid;
border-color: orange;
background-color: #FFCC66;
}
/* Header */
header
{
/*background: url('images/separateur.png') repeat-x bottom;*/
}
#titre_principal
{
display: inline-block;
border-width: thin;
border-style: solid;
border-color: orange;
}
#logo,h1
{
display: inline-block;
margin-bottom: 0px;
}
/* Bannière */
#banniere_image
{
margin-top: 15px;
height: 200px;
border-radius: 10px;
background: url('fonds/banniere.jpg') no-repeat;
position: relative;
box-shadow: 0px 4px 4px #1c1a19;
margin-bottom: 25px;
}
#banniere_description
{
position: absolute;
bottom: 0;
border-radius: 0px 0px 5px 5px;
width: 100%;
height: 33px;
padding-top: 15px;
padding-left: 0px;
background-color: rgb(24,24,24); /* Pour les anciens navigateurs */
background-color: rgba(24,24,24,0.8);
color: #d4b440;
font-size: 0.8em;
}
#menu_nav,li
{
display: inline-block;
margin-left: 10px;
border-width: thin;
border-style: solid;
border-color: orange;
}
#section_1
{
width: 1024px;
border-width: thin;
border-style: solid;
border-color: orange;
}
#section_2
{
width: 1024px;
border-width: thin;
border-style: solid;
border-color: orange;
}
#section_3
{
width: 1024px;
border-width: thin;
border-style: solid;
border-color: orange;
}
article
{
border-width: thin;
border-style: solid;
border-color: orange;
}
#pied_page
{
width: 1024px;
border-width: thin;
border-style: solid;
border-color: orange;*/
}
#divers_gauche, #divers_centre, #divers_droite
{
border-width: thin;
border-style: solid;
border-color: green;
width: 33%;
position: relative;
float:left
}
.clear {
clear:both;
overflow:hidden;
height:0;
}