chand pb
asked on
How to vertical center content in a div
Hello,
How do I center content in a div...
Here a plunk to my code ,,,
http://plnkr.co/edit/u0A9Zuiwn6G6zPtQNyOh?p=preview
Thanks for the help
How do I center content in a div...
Here a plunk to my code ,,,
http://plnkr.co/edit/u0A9Zuiwn6G6zPtQNyOh?p=preview
<div class= "container" >
<nav class = "navbar navbar-fixed-top">
<div class="row searchResulNavBar" style="background:grey">
<span class="glyphicon glyphicon-chevron-left pull-left" aria-hidden="true"></span>
<span class="glyphicon glyphicon-filter pull-right" aria-hidden="true"></span>
<div class="text-center ">Search Result</div>
</div>
</nav>
</div>
.searchResulNavBar
{
background-color:#2175d9;
padding-left:2em;
padding-right:2em;
height:2.5em;
color:white;
}
Thanks for the help
ASKER
Thanks but the icon are not centered .. only the text is centered
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you
http://jsbin.com/bovuco/1/edit?html,output
Open in new window