123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <!--
Question
https://forum.alsacreations.com/topic-27-84534-1-Flex-et-colonnage.html
-->

<h1>Flex et colonnage 2/2 : Mobile First ( <a href="https://codepen.io/Zonecss/pen/MxJBzz" target="_blank">voir aussi "desktop first"</a>)</h1> 
<div class="colcont">
  <div class="col ">...</div>
  <div class="col ">...</div>
  <div class="col ">...</div>
</div>

<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/flex-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css flex</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/display-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css display</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/justify-content-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css justify-content</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/flex-direction-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css flex-wrap</a></li> 
      <li><a href="https://www.zonecss.fr/proprietes-css/flex-wrap-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css flex-direction</a></li>
      <li><a href="https://www.zonecss.fr/proprietes-css/align-items-css.html#ZPLRQB00000.codepen" target="_blank">Propriété Css align-items</a></li> 
      <li><a href="https://www.zonecss.fr/faq/les-flexbox-css.html#ZPLRQB00000.codepen" target="_blank">Comprendre les Flexbox</a></li> 
    </ul>
  </div>  
   <div class="bloc-mise-en-page bloc-lien">
    <h2>Liens Codepen Utiles</h2>
    <ul> 
      <li><a href="https://codepen.io/Zonecss/pen/MxJBzz" target="_blank">Flex et colonnage 2/2 ( "desktop first")</a></li> 
      <li><a href="https://codepen.io/Zonecss/pen/ZPLRQB" target="_blank">Flex et colonnage 1/2 (Mobile First)</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/#ZPLRQB00000.codepen" target="_blank" title="Glossaire CSS">Zone CSS</a></li>
      <li><a href="http://www.aliasdmc.fr/#ZPLRQB00000.codepen" target="_blank" title="Glossaire HTML/JAVASCRIPT">Zone (X)HTML</a></li>
      <li><a href="https://web-color.aliasdmc.fr/#ZPLRQB00000.codepen" target="_blank" title="Couleurs pour le WEb (#,rgb,hsl)">Couleurs Web</a></li>
      <li><a href="https://outils-css.aliasdmc.fr/#ZPLRQB00000.codepen" target="_blank">Outils CSS</a></li>
      <li><a href="https://outils-javascript.aliasdmc.fr/#ZPLRQB00000.codepen" target="_blank">Outils Javascript</a></li>
    </ul>
  </div>
</div>
            
          
!
            
              /* ////////////////////////////////////////////
Plus d'informations liées à la solution  : 
//////////////////////////////////////////// 
## Propriété Css display
https://www.zonecss.fr/proprietes-css/display-css.html#ZPLRQB00000.codepen
## Propriété Css justify-content
https://www.zonecss.fr/proprietes-css/justify-content-css.html#ZPLRQB00000.codepen
## Propriété Css flex-direction
https://www.zonecss.fr/proprietes-css/flex-direction-css.html#ZPLRQB00000.codepen
## Propriété Css flex-wrap
https://www.zonecss.fr/proprietes-css/flex-wrap-css.html#ZPLRQB00000.codepen
## Propriété Css flex
https://www.zonecss.fr/proprietes-css/flex-css.html#ZPLRQB00000.codepen
## Comprendre les Flexbox
https://www.zonecss.fr/faq/les-flexbox-css.html#ZPLRQB00000.codepen
*/

/* /////////////////////////////////////////
FLEXBOX a compléter par les formes prefix 
pour compatibilité navigateur
///////////////////////////////////////// */

.colcont {
  margin:0; 
}
.col {
  margin: 1em; 
  position:relative;
  padding-bottom:30px;
  background-color:pink;
}


@media screen and (min-width: 500px) {
  .colcont {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  } 
  .col { 
    flex: 1;  
  }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console