HTML CSS examples for CSS Property:background
Min height of the background size
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .wrapper { width: 90%; margin:0 auto; } .slider {<!--from ww w . ja v a2 s. co m--> background-image:url(https://www.java2s.com/style/demo/InternetExplorer.png); background-size:cover; background-repeat:no-repeat; min-height:200px; } </style> </head> <body> <div class="wrapper"> <div class="slider"></div> </div> </body> </html>