align-top

bootstrap5.css

bootstrap5.css
.align-top {
  vertical-align: top !important;
}

html bootstrap5 Sample

navbar-brand画像:navbar-brand


  <nav class="navbar navbar-dark bg-dark">
    <a class="navbar-brand" href="#">
      <img src="img/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
      Bootstrap
    </a>
  </nav>