HTML CSS examples for CSS Property:background-color
Set background image and gradient color
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .imgbg {<!-- w w w . j a v a 2 s . c om--> width:255px; height:355px; background: url('https://www.java2s.com/style/demo/Google-Chrome.png'), linear-gradient(90deg, #f7d8e8, #f7d8e8); background-position: 0px 0px, 0px 112px; background-repeat: no-repeat, no-repeat; background-size: 255px 112px, 255px 233px; } </style> </head> <body> <div class="imgbg"></div> </body> </html>