Skip to content

comment effacer l’exemple de code css flottant

Exemple : comment effacer les flotteurs

This is the code 

.float-wrapper::after {
  content: "";
  clear: both;
  display: block;

.float-wrapper -> is some parent element that wraps the floating items

::after adds an element after the .float-wrapper, that has no content and clears floats from the both sides, making sure, other sections are not affected by floats

Articles Similaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.