Tīpoka ki te ihirangi matua Tīpoka ki te whakaterenga tuhinga
in English

Whakatikatika

Kia tere me te ngawari te hura i nga ihirangi maanu i roto i te ipu ma te taapiri i tetahi taputapu whakatika marama.

Maamaa ma floatte taapiri .clearfix ki te huānga matua . Ka taea hoki te whakamahi hei ranunga.

Whakamahia i roto i te HTML:

<div class="clearfix">...</div>

Ko te waehere puna whakauru:

@mixin clearfix() {
  &::after {
    display: block;
    clear: both;
    content: "";
  }
}

Whakamahia te ranunga i roto i te SCSS:

.element {
  @include clearfix;
}

Ko te tauira e whai ake nei e whakaatu ana me pehea te whakamahi i te whakatika marama. Ki te kore te whakatika marama ka kore te wahanga takai e awhi i nga patene ka pakaru te tahora.

<div class="bg-info clearfix">
  <button type="button" class="btn btn-secondary float-start">Example Button floated left</button>
  <button type="button" class="btn btn-secondary float-end">Example Button floated right</button>
</div>