Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

Template

Make Template?

Templates are Pens that can be used to start other Pens. You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

Uploading

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <!-- Corps de la page -->
     
     
     
      <header><!-- Entête -->
       
       
       
       
                <p><center><img src="images/banniere_05.png" alt="test"/><center/></p><!-- Image de la bannière -->
                 
                 
                 
             
            <ul id="menu-demo2"><!-- Menu du site -->
                <li><a href="#">ACCUEIL</a></li>
             
                 
                <li><a href="#">ACTIVITÉS</a>
            <ul>
                <li><a href="#">éducatives</a></li>
                <li><a href="#">festives</a></li>
                <li><a href="#">sportives</a></li>
            </ul>
                </li>
                 
                <li><a href="#">ANNONCEURS</a>
            <ul>
                <li><a href="#">commerces</a></li>
                <li><a href="#">employeurs</a></li>
            </ul>
                </li>
                 
                <li><a href="#">BOUTIQUE</a>
            <ul>
                <li><a href="#">Accessoires</a></li>
                <li><a href="#">Artisanat</a></li>
                <li><a href="#">Bijoux</a></li>
                <li><a href="#">Underground</a></li>
                <li><a href="#">Vêtements</a></li>
            </ul>
                </li>
                 
                <li><a href="#">HISTOIRE</a>
            <ul>
                <li><a href="#">Cantons de l'Est</a></li>
                <li><a href="#">Patrimoine</a></li>
                <li><a href="#">Région administrative</a></li>
                <li><a href="#">Chemin des Cantons</a></li>
                <li><a href="#">Municipalités</a></li>
            </ul>
                </li>
            </ul>
           
           
           
      </header>
       
       
        <section>
         
         
        </section>
       
       
       
      <footer><!-- Pied de page -->
         
            <p><center>Copyright Sylvain Meunier - Tous droits réservés<br /><br />
            <a href="#" title="Qui sommes-nous?" class="gauche">À propos</a><a href="#" title="Vous avez des questions? N'hésitez pas à nous contacter." class="centre">Nous contacter !</a><a href="#" title="Nous recherchons des gens motivés pour gérer les sites des différentes régions administratives." class="droite">Recherché</a><br /><br />
             
             
      </footer><!-- Fin du pied de page -->
              
            
!

CSS

              
                @media screen and (max-width: 1280px)
{
    /* Rédigez vos propriétés CSS ici */
}
 
 
 
body
{
 
    background: url("images/bordure.jpg") fixed no-repeat center, url("images/bois_01.jpg") fixed;
     
}
 
#menu-demo2, #menu-demo2 ul{
padding:0;
margin:0;
list-style:none;
text-align:center;
}
#menu-demo2 li{
display:inline-block;
position:relative;
border-radius:8px 8px 0 0;
}
#menu-demo2 ul li{
display:inherit;
border-radius:0;
}
#menu-demo2 ul li:hover{
border-radius:0;
}
#menu-demo2 ul li:last-child{
border-radius:0 0 8px 8px;
}
#menu-demo2 ul{
position:absolute;
max-height:0;
left: 0;
right: 0;
overflow:hidden;
-moz-transition: .8s all .3s;
-webkit-transition: .8s all .3s;
transition: .8s all .3s;
}
#menu-demo2 li:hover ul{
max-height:15em;
}
/* background des liens menus */
#menu-demo2 li:first-child{
background-color: #65537A;
background-image:-webkit-linear-gradient(top, #65537A 0%, #2A2333 100%);
background-image:linear-gradient(to bottom, #65537A 0%, #2A2333 100%);
}
#menu-demo2 li:nth-child(2){
background-color: #729EBF;
background-image: -webkit-linear-gradient(top, #729EBF 0%, #333A40 100%);
background-image:linear-gradient(to bottom, #729EBF 0%, #333A40 100%);
}
#menu-demo2 li:nth-child(3){
background-color: #5371c7;
background-image:-webkit-linear-gradient(top, #5371c7 0%, #1d48c4 100%);
background-image:linear-gradient(to bottom, #5371c7 0%, #1d48c4 100%);
}
#menu-demo2 li:nth-child(4){
background-color: #51aac4;
background-image:-webkit-linear-gradient(top, #51aac4 0%, #047798 100%);
background-image:linear-gradient(to bottom, #51aac4 0%, #047798 100%);
}
#menu-demo2 li:last-child{
background-color: #8ae0f9;
background-image:-webkit-linear-gradient(top, #8ae0f9 0%, #05c3fa 100%);
background-image:linear-gradient(to bottom, #8ae0f9 0%, #05c3fa 100%);
}
/* background des liens sous menus */
#menu-demo2 li:first-child li{
background:#2A2333;
}
#menu-demo2 li:nth-child(2) li{
background:#333A40;
}
#menu-demo2 li:nth-child(3) li{
background:#1d48c4;
}
#menu-demo2 li:nth-child(4) li{
background:#047798;
}
#menu-demo2 li:last-child li{
background:#05c3fa;
}
/* background des liens menus et sous menus au survol */
#menu-demo2 li:first-child:hover, #menu-demo2 li:first-child li:hover{
background:#65537A;
}
#menu-demo2 li:nth-child(2):hover, #menu-demo2 li:nth-child(2) li:hover{
background:#729EBF;
}
#menu-demo2 li:nth-child(3):hover, #menu-demo2 li:nth-child(3) li:hover{
background:#5371c7;
}
#menu-demo2 li:nth-child(4):hover, #menu-demo2 li:nth-child(4) li:hover{
background:#51aac4;
}
#menu-demo2 li:last-child:hover, #menu-demo2 li:last-child li:hover{
background:#8ae0f9;
}
/* les a href */
#menu-demo2 a{
text-decoration:none;
display:block;
padding:8px 32px;
color:#fff;
font-family:arial;
}
#menu-demo2 ul a{
padding:8px 0;
}
#menu-demo2 li:hover li a{
color:#fff;
text-transform:inherit;
}
#menu-demo2 li:hover a, #menu-demo2 li li:hover a{
color:#000;
}
 
 
section
{
     
     
    width: 940px; /* On a indiqué une largeur (obligatoire) */
    margin: auto; /* On peut donc demander à ce que le bloc soit centré avec auto */
    border: 2px solid #214fa3; /* bordure; épaisseur et couleur */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 6px 6px 30px black; /* Ombrage sous les sections */
    padding: 0; /* Marge intérieure */
    margin-bottom: 20px; /* Marge extérieure */
    background: white; /* Couleur de fond */
     
}
 
#conteneur
{
    display: flex;
    width: 940px; /* On a indiqué une largeur (obligatoire) */
    margin: auto; /* On peut donc demander à ce que le bloc soit centré avec auto */
    margin-bottom: 20px; /* Marge extérieure */
}
 
.element
{
    width: 280px; /* On a indiqué une largeur (obligatoire) */
    margin: auto;
    border: 2px solid #214fa3; /* bordure; épaisseur et couleur */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 6px 6px 30px black; /* Ombrage sous les sections */
    background: white; /* Couleur de fond */
    text-align: justify; /* Les paragraphes seront alignés au centre */
     
}
 
aside
{
    float: left;
    width: 300px;
    margin: 80px;
    margin-top: 0px;
    border: 1px solid black;
    background: white; /* Couleur de fond */
     
}
 
footer
{
     
     
    width: 940px; /* On a indiqué une largeur (obligatoire) */
    margin: auto; /* On peut donc demander à ce que le bloc soit centré avec auto */
    border: 2px solid #214fa3; /* bordure; épaisseur et couleur */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 6px 6px 30px black; /* Ombrage sous les sections */
    padding: 0px; /* Marge intérieure */
    margin-bottom: 20px; /* Marge extérieure */
    background: white; /* Couleur de fond */
    text-align: center; /* Les titres seront alignés au centre */
     
}
 
h1
{
    color: #1756a6; /* Les titres principaux seront en bleu */
    text-align: center; /* Les titres seront alignés au centre */
    font-family: Arial; /* Style de la police */
    font-size: xx-large;
     
}
 
h2
{
    color: white; /* Le titre secondaire sera blanc */
    background-color: red;
    text-align: center; /* Les titres seront alignés au centre */
    font-family: Arial; /* Style de la police */
    font-size: large; /* Grosseur de la police */
     
     
}
 
h3
{
    color: blue; /* Le sous-titre sera bleu */
    text-align: left; /* Les titres seront alignés au centre */
    font-family: Arial; /* Style de la police */
    font-size: medium; /* Grosseur de la police */
    text-decoration: underline; /* Le titre sera souligné */
    margin: 20px;
     
     
}
 
 
 
p
{
 
    color: black; /* Les paragraphes seront en noir */
    font-size: medium; /* Grosseur de la police */
    font-family: Arial, Verdana, sans-serif; /* Styles des polices */
    text-align: justify; /* Les paragraphes seront alignés au centre */
    padding-left: 20px; /* Marge intérieure de 2px */
    padding-right: 20px;
     
}
 
.gauche
{
margin-left:5px; /* Distance entre les liens du pied de page */
}
.centre
{
margin-left:200px; /* Distance entre les liens du pied de page */
}
.droite
{
margin-left:200px; /* Distance entre les liens du pied de page */
}
              
            
!

JS

              
                
              
            
!
999px

Console