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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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.

HTML

              
                <!--
https://openclassrooms.com/forum/sujet/alignement-de-textes-verticalement
-->
<header>
  <nav>
    <ul>
      <li class="logo"><a href="dashboard.php">HANDBALL-CLUB<br>MANAGER</a></li>
      <li class="menu-saison"><a href="#">Saison</a>
        <ul class="smenu">
          <li id="smenu-equipes"><a href="menus/equipes.php">Equipes</a></li>
          <li id="smenu-resultats"><a href="menus/resultats.php">Résultats</a></li>
          <li id="smenu-classements"><a href="menus/classements.php">Classements</a></li>
        </ul>
      </li>
      <li class="menu-agenda"><a href="menus/agenda.php">Agenda du club</a></li>
      <li class="menu-medias"><a href="#">Médias</a>
        <ul class="smenu">
          <li id="smenu-photos"><a href="menus/photos.php">Photos</a></li>
          <li id="smenu-videos"><a href="menus/videos.php">Vidéos</a></li>
        </ul>
      </li>
      <li class="menu-partenaires"><a href="menus/partenaires.php">Partenaires</a></li>
      <li class="menu-matches"><a href="menus/matches.php">Gestion matches</a></li>
      <li class="menu-incidents"><a href="#">Gestion incidents</a>
        <ul class="smenu">
          <li id="smenu-incident_materiel"><a href="menus/incident_materiel.php">Incident Matériel</a></li>
        </ul>
      </li>
      <li class="profile.php"><a href="menu-profile.php">MON PROFIL</a>
        <ul class="smenu">
          <li id="smenu-incident_materiel"><a href="menus/incident_materiel.php">Incident Matériel</a></li>
        </ul>
      </li>
    </ul>
  </nav>
</header>
<section>

</section> 
<hr>
<div class="mise-en-page-lien"> 
  <div class="bloc-mise-en-page bloc-lien">
    <h2>Liens Css Utiles</h2>
    <ul>  
      <li><a href="https://www.zonecss.fr/proprietes-css/display-css.html#ROKMJy00000.codepen" target="_blank">Propriété Css display</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/justify-content-css.html#ROKMJy00000.codepen" target="_blank">Propriété Css justify-content</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/flex-direction-css.html#ROKMJy00000.codepen" target="_blank">Propriété Css flex-direction</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/align-self-css.html#ROKMJy00000.codepen" target="_blank">Propriété Css align-self</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/last-child-css-selector.html#ROKMJy00000.codepen" target="_blank">Sélecteur Css :last-child</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/first-child-css-selector.html#ROKMJy00000.codepen" target="_blank">Sélecteur Css :first-child</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/not-css-selector.html#ROKMJy00000.codepen" target="_blank">Sélecteur Css :not()</a></li> 
      <li><a href="https://www.zonecss.fr/faq/les-flexbox-css.html#ROKMJy00000.codepen" target="_blank">Comprendre les Flexbox</a></li> 
    </ul>
  </div>  
    <div class="bloc-mise-en-page bloc-lien">
    <h2>Liens codepen liés</h2>
    <ul>  
      <li><a href="https://codepen.io/Zonecss/pen/dLNeyK" target="_blank">Alignement de textes verticalement (table)</a></li> 
    </ul>
  </div>
  <div class="bloc-mise-en-page bloc-lien bloc-sites">
    <h2>Sites</h2>
    <ul>
      <li><a href="https://www.zonecss.fr/#ROKMJy00000.codepen" target="_blank" title="Glossaire CSS">Zone CSS</a></li>
      <li><a href="http://www.aliasdmc.fr/#ROKMJy00000.codepen" target="_blank" title="Glossaire HTML/JAVASCRIPT">Zone (X)HTML</a></li>
      <li><a href="https://web-color.aliasdmc.fr/#ROKMJy00000.codepen" target="_blank" title="Couleurs pour le WEb (#,rgb,hsl)">Couleurs Web</a></li>
      <li><a href="https://outils-css.aliasdmc.fr/#ROKMJy00000.codepen" target="_blank">Outils CSS</a></li>
      <li><a href="https://outils-javascript.aliasdmc.fr/#ROKMJy00000.codepen" target="_blank">Outils Javascript</a></li>
    </ul>
  </div>
</div>
              
            
!

CSS

              
                /* ////////////////////////////////////////////
Plus d'informations liées à la solution  : 
//////////////////////////////////////////// 
## Propriété Css display
https://www.zonecss.fr/proprietes-css/display-css.html#ROKMJy00000.codepen
## Propriété Css justify-content
https://www.zonecss.fr/proprietes-css/justify-content-css.html#ROKMJy00000.codepen
## Propriété Css flex-direction
https://www.zonecss.fr/proprietes-css/flex-direction-css.html#ROKMJy00000.codepen
## Propriété Css align-self
https://www.zonecss.fr/proprietes-css/align-self-css.html#ROKMJy00000.codepen
## Sélecteur Css :last-child
https://www.zonecss.fr/proprietes-css/last-child-css-selector.html#ROKMJy00000.codepen
## Sélecteur Css :first-child
https://www.zonecss.fr/proprietes-css/first-child-css-selector.html#ROKMJy00000.codepen
## Sélecteur Css :not()
https://www.zonecss.fr/proprietes-css/not-css-selector.html#ROKMJy00000.codepen
## Comprendre les Flexbox
https://www.zonecss.fr/faq/les-flexbox-css.html#ROKMJy00000.codepen
*/

body {
  font-family: 'Verdana';
  margin: 0;
  padding: 0;
}

nav {
  width: 100%;
  background-color: #95a5a6;
}
nav a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  color: inherit;
}
nav > ul > li > a {
  padding: 18px 30px;
  text-align: center;
  font-size: 14px;
}
nav > ul {
  margin: 0;
  padding: 0; 
  display:flex;
  justify-content : space-between;
}
nav li {
  list-style-type: none;
} 
nav > ul > li:not(:first-child):not(:last-child):hover {
  background-color: #7f8c8d;
  position: relative;
}
nav > ul > li{
  display:flex;
  flex-direction : column;
  justify-content : center;
  margin:0
}
nav > ul > li:first-child {
  align-self : flex-start;
}
nav > ul > li:last-child{
  margin-left:auto
}
nav li:hover .smenu {
  display: inline-block;
  position: absolute;
  top: 100%;
  left: 0px;
  padding: 0;
  z-index: 1;
}

.smenu {
  display: none;
  background-color: #95a5a6;
}

.smenu li {
  border-bottom: 1px solid #CCC;
}

.smenu li:hover {
  background-color: #7f8c8d;
}

.smenu li a {
  padding: 15px 30px;
  font-size: 13px;
  width: 165px;
}
section{
  height:150px;
}
              
            
!

JS

              
                
              
            
!
999px

Console