HTML CSS examples for CSS Layout:Position
Position links at the middle of div bar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .top_header { background-color:Chartreuse; height:71px; top:61px; position:relative ; text-align:center; } div.wrap {<!-- w w w. j av a2s . c o m--> display:inline-block; } .top_header a, .top_header a:visited, .top_header a:hover, .top_header a:active, .top_header a:focus { color:yellow; font-size:x-large; font-family:Arial; } </style> </head> <body> <div class="top_header"> <a href="#">Lorem </a> <a href="#">Lorem i</a> </div> </body> </html>