Подробное описание и демонстрация работы блока команда для сайта под номером №4 для библиотеки Bootstrap. Html и CSS код для реализации блока «Хлебные крошки» на сайте как на изображении.

Демо блока «Хлебные крошки» — стиль 4

html разметка и css стили для реализации блока
<ol class="breadcrumb">
    <li><a href="#">Home</a></li>
    <li><a href="#">Gallery</a></li>
    <li><a href="#">Library</a></li>
    <li><a href="#">Web</a></li>
    <li class="active">Data</li>
</ol>
.breadcrumb{
    display: inline-block;
    padding: 10px 0 0 0;
    margin: 0;
    border-top: 4px solid #8633cb;
    background: transparent;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}
.breadcrumb li{
    float: left;
    border: 1px solid rgba(0,0,0,0.1);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease 0s;
}
.breadcrumb li:hover{ background: #8633cb; }
.breadcrumb li:before{ display: none; }
.breadcrumb li:last-child{
    color: #fff;
    background: #8633cb;
    padding: 3px 15px;
    margin-right: 0;
    position: relative;
}
.breadcrumb li:last-child:after{
    content: "";
    width: 5px;
    border: 10px solid transparent;
    border-top: 10px solid #8633cb;
    margin: 0 auto;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}
.breadcrumb li a{
    display: block;
    padding: 3px 15px;
    font-size: 16px;
    color: #000;
}
.breadcrumb li:hover a{ color: #fff; }
@media only screen and (max-width: 479px){
    .breadcrumb li{ margin-right: 3px; }
    .breadcrumb li a,
    .breadcrumb li:last-child{
        font-size: 14px;
        font-weight: normal;
        padding: 3px;
    }
}


Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *