Découvez les bases du plus célébre des frameworks CSS.
<ul class="list-group">
<li class="list-group-item">Glyphicons</li>
<li class="list-group-item">Font awesome</li>
<li class="list-group-item">Dropdown</li>
<li class="list-group-item">Navbar</li>
</ul>
Exemple
<ul class="list-group">
<li class="list-group-item"><span class="badge">8</span> Glyphicons</li>
<li class="list-group-item"><span class="badge">9</span> Font awesome</li>
<li class="list-group-item"><span class="badge">10</span> Dropdown</li>
<li class="list-group-item"><span class="badge">11</span> Navbar</li>
</ul>
Exemple
ul
par des div
et l'on met des liens a
à la place des balises li
.
<div class="list-group">
<a href="#" class="list-group-item active" title="Frameworks">
Frameworks
</a>
<a href="#" class="list-group-item" title="Bootstrap">Bootstrap</a>
<a href="#" class="list-group-item" title="Foundation">Foundation</a>
<a href="#" class="list-group-item" title="Knacss">Knacss</a>
</div>
Exemple
button
. Pour cela on remplace les balises ul
par des div
et l'on met des balises button
à la place des balises li
.
<div class="list-group">
<button class="list-group-item" title="Bootstrap">Frameworks</button>
<button class="list-group-item" title="Foundation">Foundation</button>
<button class="list-group-item" title="Knacss">Knacss</button>
</div>
Exemple
<div class="list-group">
<a href="#" class="list-group-item" title="Bootstrap">
Bootstrap
</a>
<a href="#" class="list-group-item" title="Foundation">Foundation</a>
<a href="#" class="list-group-item disabled" title="Knacss">Knacss</a>
</div>
Exemple
<div class="list-group">
<a href="#" class="list-group-item active" title="Frameworks">
Frameworks
</a>
<a href="#" class="list-group-item list-group-item-success" title="Bootstrap">Bootstrap</a>
<a href="#" class="list-group-item list-group-item-info" title="Foundation">Foundation</a>
<a href="#" class="list-group-item list-group-item-warning" title="Knacss">Knacss</a>
<a href="#" class="list-group-item list-group-item-danger" title="Web Starter Kit">Web Starter Kit</a>
</div>
Exemple
<div class="list-group">
<a href="#" class="list-group-item active">
<h4 class="list-group-item-heading">Twitter Bootstrap</h4>
<p class="list-group-item-text">Cillum voluptatibus laboris illum admodum, nam non aute multos anim. Occaecat praesentibus hic laboris quo amet cupidatat concursionibus, o hic exercitation, est excepteur sempiternum, si amet pariatur de legam iis senserit, magna cupidatat e eiusmod eu se amet arbitror despicationes.</p>
</a>
<a href="#" class="list-group-item">
<h4 class="list-group-item-heading">Zurb Foundation</h4>
<p class="list-group-item-text">Cillum voluptatibus laboris illum admodum, nam non aute multos anim. Occaecat praesentibus hic laboris quo amet cupidatat concursionibus, o hic exercitation, est excepteur sempiternum, si amet pariatur de legam iis senserit, magna cupidatat e eiusmod eu se amet arbitror despicationes.</p>
</a>
</div>
Exemple
Cillum voluptatibus laboris illum admodum, nam non aute multos anim. Occaecat praesentibus hic laboris quo amet cupidatat concursionibus, o hic exercitation, est excepteur sempiternum, si amet pariatur de legam iis senserit, magna cupidatat e eiusmod eu se amet arbitror despicationes.
Cillum voluptatibus laboris illum admodum, nam non aute multos anim. Occaecat praesentibus hic laboris quo amet cupidatat concursionibus, o hic exercitation, est excepteur sempiternum, si amet pariatur de legam iis senserit, magna cupidatat e eiusmod eu se amet arbitror despicationes.
<div class="list-group">
<a href="#" class="list-group-item active" title="Secteurs d'activité">
Secteurs d'activité
</a>
<a href="#" class="list-group-item" title="Industrie"><i class="fa fa-industry"></i> Industrie</a>
<a href="#" class="list-group-item" title="Automobile"><i class="fa fa-automobile"></i> Automobile</a>
<a href="#" class="list-group-item" title="Téléphonie"><i class="fa fa-mobile"></i> Téléphonie</a>
<a href="#" class="list-group-item" title="Banque"><i class="fa fa-bank"></i> Banque</a>
</div>
Exemple