Panel is a bordered box which is used to insert a component in a box
<h2>Panel</h2> <div class="container"> <div class="panel panel-default"> <div class="panel-body">TechFunda is a online tutorial </div> </div> </div>
In the above code snippet we have panel, we have panel body inside the panel to define the text in the body
output
It creates heading in the panel
<h2>Panel-Heading</h2> <div class="container"> <div class="panel panel-default"> <div class="panel-heading">TechFunda</div> <div class="panel-body">DotNetFunda</div> </div> </div>
It creates heading in the panel heading
output
It creates footer in the panel
<h2>Panel-Footer</h2> <div class="panel panel-primary"> <div class="panel-body" >Body</div> <div class="panel-footer">Footer</div> </div>
In the above code snippet we have panel footer
output
Panle group is used to group the panel
<h2>Panel group</h2> <div class="container"> <div class="panel-group"> <div class="panel panel-default"> <div class="panel-heading">TechFunda</div> <div class="panel-body">DotNetFunda</div> </div> <div class="panel panel-default"> <div class="panel-heading">ITFunda</div> <div class="panel-body">KidsFunda</div> </div> </div> </div>
In the above code snippet we have defined the panel group, which is used to group the panels
output
Views: 5745 | Post Order: 30