HTML CSS examples for CSS Widget:Menu
Fixed menu, repeat-x left , repeat-x right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .TriHeader {<!-- w ww.j av a 2 s . com--> position:fixed; width:100%; height:77px; } .TriHeader div { height:77px; position:absolute; } .TriHeader .left { left:0; right:51%; z-index:0; } .TriHeader .left div { background:url('https://www.java2s.com/style/demo/Google-Chrome.png') top left repeat-x; right:568.6px; left:0; top:0; } .TriHeader .center { background:url('https://www.java2s.com/style/demo/Google-Chrome.png') top left no-repeat; width:1136px; left:51%; margin-left:-568.6px; z-index:2; } .TriHeader .right { left:51%; right:0; z-index:0; } .TriHeader .right div { background:url('https://www.java2s.com/style/demo/Google-Chrome.png') top left repeat-x; left:568.6px; right:0; top:0; } </style> </head> <body> <div class="TriHeader"> <div class="left"> <div></div> </div> <div class="center"> Lorem ipsum dolor sit amet, consectetur adip </div> <div class="right"> <div></div> </div> </div> </body> </html>