Center text in navbar with image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav bar image

Description

Center text in navbar with image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.circle-pic-header {<!--from ww  w . j ava  2 s.c om-->
   vertical-align:middle
}
</style> 
 </head> 
 <body> 
  <div style="background-color: #4989ff; color: whitesmoke;"> 
   <img width="100px" class="circle-pic-header" style="margin-top: 5px; margin-left: 5px;" src="https://www.java2s.com/style/demo/Opera.png">Lorem ips 
  </div> 
  <div>
    Lorem ipsum dolor sit amet, consectetur adip 
  </div>  
 </body>
</html>

Related Tutorials