HTML CSS examples for CSS Widget:Header
Center content in the header
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container{<!-- www. j a v a 2 s. c o m--> width:500px; position:fixed; } .item{ margin-left:20px; border:black solid 1px; width:50px; height:50px; float:left } .search{ margin-left:20px; border:black solid 1px; width:100px; float:left; height:50px; } </style> </head> <body> <div class="container"> <div class="item"> item </div> <div class="item"> item </div> <div class="search"> your search bar goes here </div> <div class="item"> item </div> <div class="item"> item </div> </div> </body> </html>