Answers for "body, html { background-image: url({{ 'BG-7.jpg' | asset_url }}); height: 100%; width: 100%; background-position: center; background-repeat: none; background-size: cover;"

CSS
1

how to set a full size background image in html

<head>
<style>
#example1{
  border: 2px solid black;
  padding: 100px;
  background: url(mountain.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
</style>
</head>
<body>
<div id="example1">
</div>
</body>
Posted by: Guest on June-06-2020

Code answers related to "body, html { background-image: url({{ 'BG-7.jpg' | asset_url }}); height: 100%; width: 100%; background-position: center; background-repeat: none; background-size: cover;"

Browse Popular Code Answers by Language