“CSS inline-block” Kode Jawaban

CSS inline-block

span.a {
  display: inline; /* the default for span */
  width: 100px;
  height: 100px;
  padding: 5px;
  border: 1px solid blue;
  background-color: yellow;
}

span.b {
  display: inline-block;
  width: 100px;
  height: 100px;
  padding: 5px;
  border: 1px solid blue;
  background-color: yellow;
}

span.c {
  display: block;
  width: 100px;
  height: 100px;
  padding: 5px;
  border: 1px solid blue;
  background-color: yellow;
}
naly moslih

blok inline

An inline block is placed inline (ie. on the same line as adjacent content), but it behaves as a block. Its inline but we can add width height etc
Crowded Copperhead

Jawaban yang mirip dengan “CSS inline-block”

Pertanyaan yang mirip dengan “CSS inline-block”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya