Last active
August 29, 2015 14:08
-
-
Save seyDoggy/3946b2603ac8026a25d3 to your computer and use it in GitHub Desktop.
Horizontal Bootstrap style panel, using Bootstrap Markup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To see in action, go to http://jsfiddle.net/seydoggy/9jv5e8d1/ | |
*/ | |
.panel-horizontal { | |
display:table; | |
width:100%; | |
} | |
.panel-horizontal > .panel-heading, .panel.panel-horizontal > .panel-body, .panel.panel-horizontal > .panel-footer { | |
display:table-cell; | |
} | |
.panel-horizontal > .panel-heading, .panel.panel-horizontal > .panel-footer { | |
width: 25%; | |
border:0; | |
vertical-align: middle; | |
} | |
.panel-horizontal > .panel-heading { | |
border-right: 1px solid #ddd; | |
border-top-right-radius: 0; | |
border-bottom-left-radius: 4px; | |
} | |
.panel-horizontal > .panel-footer { | |
border-left: 1px solid #ddd; | |
border-top-left-radius: 0; | |
border-bottom-right-radius: 4px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
To see in action, go to http://jsfiddle.net/seydoggy/9jv5e8d1/ | |
The idea is to use only Bootstrap markup, | |
so you can turn any basic bootstrap panel | |
into a horizontal panel. | |
--> | |
<div class="panel panel-default panel-horizontal"> | |
<div class="panel-heading"> | |
<h3 class="panel-title">Panel title</h3> | |
</div> | |
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Atque saepe iusto nulla molestias quis esse incidunt veritatis exercitationem dolore officiis. Nam quos iusto officiis ullam itaque voluptatum fuga assumenda culpa!</div> | |
<div class="panel-footer">Panel footer</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment