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

<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>

Open in new window


.searchResulNavBar
{
	background-color:#2175d9;
	padding-left:2em;
	padding-right:2em;
	height:2.5em;
	color:white;
}

Open in new window


Thanks for the help
chand pbAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Make the height and line height the same
http://jsbin.com/bovuco/1/edit?html,output
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>padas</title>
  <style>
  .searchResulNavBar
{
	background-color:#2175d9;
	padding-left:2em;
	padding-right:2em;
	height:2.5em;
    line-height:2.5em;
	color:white;
     
}
 
  </style>
</head>
<body>
<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>

</body>
</html>

Open in new window

chand pbAuthor Commented:
Thanks but the icon are not centered .. only the text is centered
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
http://plnkr.co/edit/u0A9Zuiwn6G6zPtQNyOh?p=preview
.searchResulNavBar {
  background-color: #2175d9;
  padding-left: 2em;
  padding-right: 2em;
  height: 5.5em;
  line-height: 5.5em;
  color: white;
}
.searchResulNavBar  span{
  
  padding-top:1.2em;
}

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chand pbAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.