Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Bootstrap multiline adaptive steps"
Bootstrap 3.3.0 Snippet by
nixprosoft
3.3.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
3.9K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <br><br> <div class="container"> <ul class="steps"> <li class="completed"><a href="#">Наполнение корзины</a></li> <li class="active"><a href="#">Заполнение списка слушателей</a></li> <li><a href="#">Выбор способа оплаты и доставки</a></li> <li><a href="#">Авторизация</a></li> <li><a href="#">Загрузка документов</a></li> <li><a href="#">Оплата</a></li> </ul> </div>
@media (min-width: 992px) { .steps { padding: 0px; background: transparent; list-style: none; overflow: hidden; margin-top: 20px; margin-bottom: 20px; border-radius: 4px; display: table-row; } .steps > li { display: table-cell; vertical-align: middle; width: 1%; height: 0; } .steps > li + li:before { padding: 0; content: ""; } .steps li a { color: white; text-decoration: none; padding: 10px 0 10px 35px; position: relative; display: inline-block; width: calc(100% - 10px); background-color: #999; text-align: center; height: 100%; } .steps li.completed a { background: #3c763d; } .steps li.completed a:after { border-left: 30px solid #3c763d; } .steps li.active a { background: #8a6d3b; } .steps li.active a:after { border-left: 30px solid #8a6d3b; } .steps li:first-child a { padding-left: 15px; } .steps li:last-of-type a { width: calc(100% - 38px); } .steps li a:before { content: " "; display: block; width: 0; height: 0; border-top: 50px solid transparent; /* height not equal parent */ border-bottom: 50px solid transparent; /* height not equal parent */ border-left: 30px solid white; position: absolute; top: 50%; margin-top: -50px; /* height not equal parent */ margin-left: 1px; left: 100%; z-index: 1; } .steps li a:after { content: " "; display: block; width: 0; height: 0; border-top: 50px solid transparent; /* height not equal parent */ border-bottom: 50px solid transparent; /* height not equal parent */ border-left: 30px solid #999; position: absolute; top: 50%; margin-top: -50px; /* height not equal parent */ left: 100%; z-index: 2; } } @media (max-width: 991px) { .steps { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; overflow: auto; } .steps > li { display: block; } .steps li a { color:#777; } .steps > li:before { padding: 0 5px; color: #ccc; content: "\e080"; font-family:'Glyphicons Halflings'; font-style:normal; font-weight:400; line-height:1; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; } .steps li.completed:before { content: "\e013"; color:#3c763d; font-family:'Glyphicons Halflings'; font-style:normal; font-weight:400; line-height:1; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; } .steps li.completed a { color: inherit; } .steps li.active:before { color:#8a6d3b; } .steps > .active { color: #999; } .steps li:first-child a { padding-left: inherit; } .steps li:last-of-type a { width: inherit; } }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76