J'ai ce fil d'Ariane
Home > News > Long title of the news that goes on other line
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 <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>
Avec ce style
Sur smartphone, il est affiché comme ceci, avec un retour à la ligne si le texte est trop long pour l'un des éléments :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 .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: ""; }
Home > News
> Long title of the news that goes on other line
Je voudrais qu'il soit affiché en prenant toute la largeur, par exemple :
Home > News > Long title of the
news that goes on other line
Partager