Twitter bootstrap 3 has a component-prepared name for the button group, justified . URL: http://getbootstrap.com/components/#btn-groups-justified
Is there a way to make .btn-group.btn-group-justified responsive if we have more buttons? Maybe we can put it on 2 lines without using display: block and save it display: table-cell so that it can remain vertically aligned in the middle?
.btn-group.btn-group-justified
display: block
display: table-cell
Are there any built-in classes prepared by bootstrap? since they prepared this component of the Button Just Just css group, don't they have anything to make it responsive if it has many buttons with longer words?
Here is my fiddle: http://jsfiddle.net/kHW3V/
well yes, if you used regular button groups like this, its already responsive
<div class="btn-group"> <button type="button" class="btn btn-default">Text</button> </div>
Updated Fiddle
if you have reasonable let me know!
Using https://getbootstrap.com/components/#nav-justified worked for me
<ul class="nav nav-pills nav-justified"> <li><a role="button" class="btn btn-default" href="/mypage1"><img src="/images/myimage1.png" height="32" alt="myimage1"></a></li> <li><a role="button" class="btn btn-default" href="/mypage2"><img src="/images/myimage2.png" height="32" alt="myimage2"></a></li> <li><a role="button" class="btn btn-default" href="/mypage3"><img src="/images/myimage3.png" height="32" alt="myimage3"></a></li> </ul>
You can add this style to all .btn inside .btn-group-justified .
.btn
.btn-group-justified
.btn-group-justified > .btn { width: auto; display: inline-block; }
Source: https://habr.com/ru/post/970562/More articles:Password protection coding password issue - spring-securitystd :: map causes "stack overflow" in low memory conditions - c ++HDF5 rowmajor or colmajor - hdf5How to run ClassCleanup (MSTest) after each class with a test? - c #4x4 Matrix Pre-Multiplication vs. Post-Multiplication - c ++Get variable data inside script tag in Python or Content added from js - javascriptCheck if max width is set in jQuery? - javascriptBinding underline does not work in IE8 - javascriptRestore Hadoop NameNode from metadata backup - hadoopUISearchControllerDelegate - the search bar does not appear in the table header - iosAll Articles