JSFiddle - React, Tailwind, and code Playground
HTML
<header>
<nav id="main-nav">
<div id="logo">
<p> Chalet Clauss</p>
</div>
<ul>
<li><a href="#">Hébergement</a></li>
<li><a href="#">Réservation</a></li>
<li><a href="#">Infos Pratiques</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<div class="gridContainer clearfix">
<div id="LayoutDiv1"><p>TEST</p></div>
</div>
CSS
@charset "utf-8";
img, object, embed, video {
max-width: 100%;
}
/* IE 6 ne prend pas en charge max-width ; la largeur par défaut est donc fixée à 100% */
.ie6 img {
width:100%;
}
/*
Propriétés de grille fluide Dreamweaver
----------------------------------
dw-num-cols-mobile: 5;
dw-num-cols-tablet: 8;
dw-num-cols-desktop: 10;
dw-gutter-percentage: 25;
Inspiré par "Responsive Web Design" par Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
et le système Golden Grid par Joni Korpi
http://goldengridsystem.com/
*/
/* Disposition mobile : 480px et moins. */
.gridContainer {
margin-left: auto;
margin-right: auto;
width: 87.36%;
padding-left: 1.82%;
padding-right: 1.82%;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
/* Disposition tablette : 481px sur 768px. Hérite des styles de : Disposition mobile */
@media only screen and (min-width: 481px) {
.gridContainer {
width: 90.675%;
padding-left: 1.1625%;
padding-right: 1.1625%;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
}
/* Disposition bureau : 769px à max. 1232px. Hérite des styles de : Disposition mobile et disposition tablette */
@media only screen and (min-width: 769px) {
.gridContainer {
width: 88.2%;
max-width: 1232px;
padding-left: 0.9%;
padding-right: 0.9%;
margin: auto;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
}
/** Body Style **/
body {
background-image:url(Background/fond.png);
background-repeat: repeat;
}
/** Barre de Navigation : Menu **/
header {
background-color: #232525;
border-bottom: 1px solid #000;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
height: 120px;
position: fixed;
width: 100%;
z-index: 1000;
}
#main-nav {
margin-right:auto;
margin-left:auto;
width:1000px;
position:relative;
}
#main-nav ul...