HTML CSS examples for CSS Property:background
Stretch gradient background to fit the page
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html{<!-- w w w . ja v a 2s . co m--> background-color:rgb(57,57,57); background-image: url(https://www.java2s.com/style/demo/InternetExplorer.png), url("https://www.java2s.com/style/demo/Safari.png"); background-size:auto,cover; background-position:top left, center; } #content{ height:1800px; } </style> </head> <body> <section id="content"></section> </body> </html>