d-inline
bootstrap5.css
bootstrap5.css
.d-inline {
display: inline !important;
}
bootstrap5.css
.d-inline-block {
display: inline-block !important;
}
bootstrap5.css
.d-inline-flex {
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
bootstrap5.css
@media (min-width: 768px) {
.d-md-none {
display: none !important;
}
.d-md-inline {
display: inline !important;
}
.d-md-inline-block {
display: inline-block !important;
}
.d-md-block {
display: block !important;
}
.d-md-table {
display: table !important;
}
.d-md-table-row {
display: table-row !important;
}
.d-md-table-cell {
display: table-cell !important;
}
.d-md-flex {
display: -ms-flexbox !important;
display: flex !important;
}
.d-md-inline-flex {
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
html bootstrap5 Sample
高さを指定する:h-25
インライン表示のdiv:d-inline
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>