HTML CSS examples for CSS Widget:Menu Bar
Creating a menu bar that height is fixed but squeezes as browser size changes in CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #bar {<!--from w w w .ja va 2 s . c om--> background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat center; height:100px; background-size:100% 100%; } </style> </head> <body> <div id="bar"> </div> </body> </html>