Inventaire
Un inventaire de formes à copier-coller directement dans l'éditeur de texte. Ici le code source de la forme ☞
            
<!-- Le carré basique -->
<div id="carre"></div>

<!-- Le css du carré -->
        
        
#Carre {
    height: 50px;
    /* la hauteur  */
    width: 50px;
    /* la largeur */
    background-color: grey;
    /* la couleur de fond */
}
    
    
        
<!-- Le cercle basique -->
<div id="cercle"></div>

<!-- Le css du cercle -->
    
    
#cercle {
    height: 50px;
    /* la hauteur */
    width: 50px;
    /* la largeur */
    background-color: grey;
    /* la couleur de fond */
    border-radius: 50%;
    /* le contour arrondi */
}

    
<!-- L'ovale -->
<div id="ovale"></div>

<!-- Le css de l'ovale -->


#ovale {
    height: 50px;
    width: 100px;
    background-color: grey;
    border-radius: 50%;
}

    
<!-- Le trapèze -->
<div id="trapeze"></div>

<!-- Le css du trapèze -->


#trapeze {
    border-bottom: 50px solid grey;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    height: 0;
    width: 125px;
}

    
<!-- Le rectangle  -->
<div id="rectangle"></div>

<!-- Le css du rectangle -->


#rectangle {
    height: 50px;
    width: 100px;
    background-color: grey;
}

    
<!-- Le parallelogramme -->
<div id="parallelogramme"></div>

<!-- Le css du parallelogramme -->


#parallelogramme {
    width: 100px;
    height: 50px;
    transform: skew(20deg);
    background: grey;
}

    
<!-- Le triangle orienté vers le haut -->
<div id="triangle-haut"></div>

<!-- Le css du triangle orienté vers le haut -->


#triangle-haut {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid grey;
}

    
<!-- Le triangle orienté vers le bas -->
<div id="triangle-bas"></div>

<!-- Le css du triangle orienté vers le bas -->


#triangle-bas {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid grey;
}

    
<!-- Le triangle orienté vers la gauche -->
<div id="triangle-gauche"></div>

<!-- Le css du triangle orienté vers la gauche -->


#triangle-gauche {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-right: 50px solid grey;
    border-bottom: 25px solid transparent;
}

    
<!-- Le triangle orienté vers la droite -->
<div id="triangle-droite"></div>

<!-- Le css du triangle orienté vers la droite -->


#triangle-droite {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-left: 50px solid grey;
    border-bottom: 25px solid transparent;
}

    
<!-- Le triangle-topleft -->
<div id="triangle-topleft"></div>

<!-- //Le triangle-topleft -->


  #triangle-topleft {
       width: 0;
       height: 0;
       border-top: 100px solid red;
       border-right: 100px solid transparent;
     }

    
<!-- Le triangle-topright -->
<div id="triangle-topright"></div>

<!-- //Le css du triangle-topright -->


  #triangle-topright {
    width: 0;
    height: 0;
    border-top: 100px solid red;
    border-left: 100px solid transparent;
  }

    
<!-- Le triangle-bottomleft -->
<div id="triangle-bottomleft"></div>

<!-- //Le css du triangle-bottomleft -->


  #triangle-bottomleft {
    width: 0;
    height: 0;
    border-bottom: 100px solid red;
    border-right: 100px solid transparent;
  }


<!-- Le triangle-bottomright -->
<div id="triangle-bottomright"></div>

<!-- //Le css du triangle-bottomright -->


  #triangle-bottomright {
    width: 0;
    height: 0;
    border-bottom: 100px solid red;
    border-left: 100px solid transparent;
  }


<!-- L'étoile -->
<div id="star-six"></div>

<!-- //Le css de l'étoile -->


  #star-six {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid red;
    position: relative;
  }
  #star-six:after {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 100px solid red;
    position: absolute;
    content: "";
    top: 30px;
    left: -50px;
  }