<div class="fr1"></div> <div class="fr2"></di。AtelierRoi"> <div class="fr1"></div> <div class="fr2"></di" />
アトリエロワ

flex基本

HTML

<div class="fr">
  <div class="fr1"></div>
  <div class="fr2"></div>
  <div class="fr3"></div>
</div>

縦中央寄せのCSS

.fr {
  display: flex;
  justify-content: center;
  align-items: center;
}

内側要素の幅CSS

.fr1 {
 flex-basis: 20%;
}
.fr2 {
 flex-basis: 30%;
}
.fr3 {
 flex-basis: 50%;
}

HOME > html+css > flex基本