I've this breadcrumb
Home > News > Long title of the news that goes on other line
<nav aria-label="Fil d'ariane" class="breadcrumb">
<ol>
<li>
<a class="mdi mdi-home" href="https://google" id="ariane_n1">Google</a>
</li>
<li>
<a href="https://google/news">News</a>
</li>
<li>
<a href="https://google/news/7357"><span aria-current="page" class="ariane_courant">Long title of the news that goes on other line</span></a>
</li>
</ol>
</nav>
With this css
.breadcrumb {
background-color: white;
border-radius: unset;
margin: .3rem 0 .5rem 0;
padding: 0;
display: flex; <== bootstrap
flex-wrap: wrap; <== bootstrap
list-style: none; <== bootstrap
}
.breadcrumb ol {
align-items: baseline;
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
.breadcrumb li::before {
content: "›";
padding: 0px 0px 0px 0.25rem;
}
.breadcrumb li:first-child::before {
content: "";
}
On small screen like smartphone, the breadcrumb is displayed like :
Home > News
> Long title of the news that goes on other line
I would like it is displayed on full width, with a line return at the end of the screen :
Home > News > Long title of the
news that goes on other line
I got rid of using flex on the ol, made the li elements be inline and tweaked the padding.