Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <ul class=e2>
<li><label for="E-CARTEBLEUE"><img src="https://www.botega.fr/E-CARTEBLEUE.png" alt="e-Carte" width="85" height="30" /></label>
<input type="radio" name="moyen" id="E-CARTEBLEUE" value="cblE-CARTEBLEUE" />e-Carte</li>

<li><label for="CB"><img src="https://www.botega.fr/CB.svg" alt="CB" width="39" height="31" /></label>
<input type="radio" name="moyen" id="CB" value="cblCB" />CB</li>

<li>
  <label for="VISA"><img src="https://www.botega.fr/VISA.png" alt="Visa" width="80" height="26" /></label>
<input type="radio" name="moyen" id="VISA" value="cblVISA" />Visa
  </li>

<li><label for="MASTERCARD"><img src="https://www.botega.fr/MASTERCARD.png" alt="Mastercard" width="50" height="30" /></label>
<input type="radio" name="moyen" id="MASTERCARD" value="cblMASTERCARD" />Mastercard</li>

<li><label for="MAESTRO"><img src="https://www.botega.fr/MAESTRO.png" alt="Maestro" width="50" height="30" /></label>
 <input type="radio" name="moyen" id="MAESTRO" value="cblMAESTRO" />Maestro</li>
</ul>


<ul class="mrj">
<li><a href="#"><img src="im/ad/b1G.jpg" width="110" height="110" alt="texte long" /></a>
<a href="#">Connecteurs RJ45 Keystone : 11</a></li>
<li><a href="#"><img src="im/ad/b17G.jpg" width="110" height="72" alt="teste court" /></a>
<a href="#">Boitiers RV : 4</a></li>
<li><a href="#"><img src="im/pr/1325G.jpg" width="110" height="70" alt="Porte 625" /></a>
<a href="#">Porte 625</a></li>
<li><a href="#"><img src="im/pr/3G.jpg" width="110" height="75" alt="Porte 250" /></a>
<a href="#">Porte 250</a></li>
<li><a href="#"><img src="im/pr/1028G.jpg" width="110" height="69" alt="Panneau de brassage" /></a>
<a href="#">Panneau de brassage</a></li>
<li><a href="#"><img src="im/pr/1877G.jpg" width="110" height="30" alt="Rail DIN" /></a>
<a href="#">Texte long qui prend trois lignes pas moins de trois</a></li>
</ul>
              
            
!

CSS

              
                ul > li {list-style: none; border: 1px solid green}

ul {border: 1px solid blue}

img {border: 1px solid red}

img[alt="e-Carte"] {width: 85px; height: 60px}
img[alt="CB"] {width: 39px; height: auto}
img[alt="Visa"] {width: 80px; height: 80px}
img[alt="Mastercard"] {width: 50px; height: 30px}
img[alt="Maestro"] {width: 50px; height: 15px}


ul.e2 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, 110px);
 padding-left: 0
}


ul.e2 > li {
display: grid;
align-items: center;
grid-template-rows: 100px auto;
}


ul.e2 label {
  grid-column: 1 / span 2;
  margin-bottom: 20px;
}

ul.e2 img {
  margin: auto;
  display: block;
}

ul input {margin: 0 5px 0 auto; padding: 0}

/*
ul.mrj {
display: grid;
grid-template-columns: repeat(auto-fill, 140px); 
place-content:center;  
grid-template-rows: auto 1fr;  
column-gap: 30px; row-gap: 20px;
margin-top: 60px;
padding-left: 0;
}

ul.mrj > li {
display: grid;
grid-row: auto / span 2;
grid-template-rows: subgrid;
text-align: center;
row-gap: 8px;
margin: 10px}


ul.mrj > li > a:first-of-type {
display: grid;
place-content: center;
border: 1px solid gray; border-radius: 18px}


ul.mrj > li img {padding: 10px}
ul.mrj > li > a:last-child {align-self: start}

*/

ul.mrj {
  display: grid;
  place-content:start;
  grid-template-columns: repeat(auto-fit, 140px);
  grid-template-rows: auto 1fr;/* li va s'en servir et le modele auto 1fr se repetera pour chaques nouvelles ligne de li */
  gap: 20px;
  padding-left: 0;
  margin-top: 50px
}

ul.mrj > li {
  display: grid;
  grid-row: auto / span 2; /* on prend deux lignes */
  grid-template-rows: subgrid;/* on utilise, reproduit la grille du parent comme si li n'existait pas */
  row-gap: 8px;/* reset du gap à l'interieur de li*/
  text-align: center;
  background:rgba(0,0,0,0.05)
}
li a:first-child { /* centrage et bordures*/
  display: grid;
  place-content: center;
  border: solid blue 1px;
  border-radius: 20px;
  padding: 10px 0;
}
img{
  box-shadow:2px 2px 2px #555;
}

              
            
!

JS

              
                
              
            
!
999px

Console