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

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://forum.alsacreations.com/topic-1-86212-1-Flexbox.html
-->
<div class="header">
  <!-- logo -->
  <p class="logo"><img src="https://www.zonecss.fr/img/exemple/filter-image.jpg" alt="logo"></p>

  <!-- menu -->
  <nav class="menu">	
    <ul class="navigateur">
      <li class="bouton"><a href="index.html"> HOME </a></li>
      <li class="bouton"><a href="World.html"> WORLD </a></li>
      <li class="bouton"><a href="characters.html"> CHARACTERS </a> </li>
      <li class="bouton"><a href="fauna.html"> FAUNA </a></li>
      <li class="bouton"><a href="weapons.html"> WEAPONS </a></li>
    </ul>
  </nav>	
</div>

<div class="ecriture">

  <p class="alex"><img src="https://www.zonecss.fr/img/exemple/filter-image.jpg" alt="Alexandria"></p>

  <div class="presentezvous">
    <h1>
      <div class="nom">ALEXANDRIA</div><br> 
      <div class="prenom">HYPATIA</div>
    </h1>

    <p class="rouge">"Chief Alchemist of the Addermire Institute"</p>
    <p class="gris_2">Hypatia was a friend of Theodanis Abele, the previous Duke of Karnaca. Recognizing her talent, Luca Abele forcibly confined her to her workplace, the Addermire Institute. Although the public was told that Hypatia did not leave Addermire in order to create a new serum against the bloodfly fever, Hypatia was in truth a prisoner of Abele.</p>
    <p class="gris_2">She was renowned not just for creating the Addermire Solution but for helping the miners recover from the dangers of Karnaca's silver mines.</p>
    <p class="gris_2">During her efforts, Hypatia tested an early version of her serum on herself which created a split persona inside her head: Grim Alex. During the events of Dishonored 2, this process has been going on for at least three years. Hypatia was not aware of these changes, and did not fully understand why the Duke gradually restricted her to Addermire Institute, when she was perfectly willing to spend most of her time there anyway, all but abandoning her apartment above the Winslow Safe store outside Addermire Station.</p>

  </div>

</div>
              
            
!

CSS

              
                body{
  margin:0;
  display:flex;
  flex-direction : column;
}
.ecriture,
.header,
.header .navigateur{
  display:flex;
  flex-direction : row;
  flex-wrap : nowrap; 
}

.logo{width:25px;}
.ecriture img,
.logo img{width:100%;height:auto}
.header ul,.header li{list-style:none}
.header ul,.header li,
.header p,
.ecriture p{margin:0;padding:0;}

.header{
  border:1px solid red;
}
.ecriture{
  border:1px solid green;
}

.ecriture .alex{
  min-width:150px;
  margin-right:5px;
}

@media only screen and (max-width : 320px) {
  .ecriture,
  .header,
  .header .navigateur{ 
    flex-wrap : wrap; 
  }

}
              
            
!

JS

              
                
              
            
!
999px

Console