CSS Background Size Part 2

Continuing the content with the part 2

Global Values

We can also provide some global value in the background-size property. These are as below.

1. Inherit

With the help of this keyword, we can change the property of the element, which is like the property of the parent element. We can say that the inheritance concept implements in this situation.

<!DOCTYPE html>  
<html lang="en">  
<head>  
 <meta charset="UTF-8">  
 <meta name="viewport" content="width=device-width, initial-scale=1.0">  
 <title>Document</title>  
 <style>  
  body {  
 margin: 0px;  
 display: flex;  
 justify-content: center;  
 align-items: center;  
 min-height: 100vh;  
 background-color: #f0f0f0;  
}  

.container {  
 width: 300px;  
 height: 200px;  
 background-image: url('https://e0.pxfuel.com/wallpapers/163/906/desktop-wallpaper-beautiful-nature-with-girl-beautiful-girl-with-nature-and-moon-high-resolution-beautiful.jpg');  
 background-size: inherit; 
 display: flex;  
 justify-content: center;  
 align-items: center;  
}  

.box {  
 width: 150px;  
 height: 100px;  
 background-color: rgba(255, 0, 0, 0.5);  
}  

 </style>  
</head>  
<body>  
 <div class="container">  
  <div class="box"></div>  
 </div>  
</body>  
</html>

2. Initial

With the help of this keyword, we can change the initial value of the element by specifying the initial value. It also has some default values. Let's understand it clearly by taking an example.

<!DOCTYPE html>  
<html lang="en">  
<head>  
<meta charset="UTF-8">  
<meta name="viewport" content="width=device-width, initial-scale=1.0">  
<style>  
 body {  
  margin: 0;  
  padding: 0;  
  font-family: Arial, sans-serif;  
 }  
 .hero {  
  position: relative;  
  height: 100vh;  
  background-image: url("https://e0.pxfuel.com/wallpapers/163/906/desktop-wallpaper-beautiful-nature-with-girl-beautiful-girl-with-nature-and-moon-high-resolution-beautiful.jpg");  
  background-size: initial; 
  background-position: center;  
  background-repeat: no-repeat;  
  color: white;  
  text-align: center;  
  display: flex;  
  flex-direction: column;  
  justify-content: center;  
  align-items: center;  
 }  
 .hero-content {  
  padding: 20px;  
  background-color: rgba(0, 0, 0, 0.5);  
  border-radius: 10px;  
 }  
 .hero h1 {  
  font-size: 3rem;  
  margin-bottom: 10px;  
 }  
 .hero p {  
  font-size: 1.2rem;  
 }  
</style>  
<title>Initial Background Size Example</title>  
</head>  
<body>  
 <div class="hero">  
  <div class="hero-content">  
   <h1>Welcome to Jalaj Singhal</h1>  
   <p>Learn New Things, Concept and Designs</p>  
  </div>  
 </div>  
</body>  
</html>


3. Unset

With the help of unset property, we can replace both initial and inherited property. If we set the property as inherit, then the unset property becomes inherit. If we don't set the property as inherit, then the unset property becomes initial.

<!DOCTYPE html>  
<html lang="en">  
<head>  
<meta charset="UTF-8">  
<meta name="viewport" content="width=device-width, initial-scale=1.0">  
<style>  
 body {  
  margin: 0;  
  padding: 0;  
  font-family: Arial, sans-serif;  
  display: flex;  
  justify-content: center;  
  align-items: center;  
  height: 100vh;  
  background-color: #f0f0f0;  
 }  

 .container {  
  width: 400px;  
  height: 300px;  
  background-image: url("https://e0.pxfuel.com/wallpapers/163/906/desktop-wallpaper-beautiful-nature-with-girl-beautiful-girl-with-nature-and-moon-high-resolution-beautiful.jpg");  
  background-size: unset;  
  border-radius: 10px;  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
  overflow: hidden;  
  position: relative;  
 }  

 .overlay {  
  position: absolute;  
  top: 0;  
  left: 0;  
  width: 100%;  
  height: 100%;  
  background-color: rgba(0, 0, 0, 0.5);  
  opacity: 0.8;  
 }  

 .content {  
  position: absolute;  
  top: 50%;  
  left: 50%;  
  transform: translate(-50%, -50%);  
  text-align: center;  
  color: #fff;  
 }  

 .content h1 {  
  margin: 0;  
  font-size: 24px;  
 }  

 .content p {  
  margin: 10px 0;  
  font-size: 16px;  
 }  
</style>  
<title>Background Size Example</title>  
</head>  
<body>  
 <div class="container">  
  <div class="overlay"></div>  
  <div class="content">  
   <h1>Welcome to Jalaj Singhal</h1>  
   <p>Learn New Things, Concept and Designs.</p>  
  </div>  
 </div>  
</body>  
</html>


Multiple Images

We can also set multiple images as the background image.

<!DOCTYPE html>  
<html lang="en">  
<head>  
<meta charset="UTF-8">  
<meta name="viewport" content="width=device-width, initial-scale=1.0">  
<style>  
 body {  
  margin: 0;  
  padding: 0;  
  display: flex;  
  justify-content: center;  
  align-items: center;  
  min-height: 100vh;  
  background-color: #f4f4f4;  
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBYWFRgVFhYYGRgaGRoYGhwaHBwaHBocGBwaGhoaHBkcIS4lHB4rHxgYJjgmKy8xNTU1GiQ7QDs0Py40NTEBDAwMEA8QHxISHzYrJCs0NDQ0NDQ3OjQ0NDY0NDQ0NDQ0NDQ2NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIALcBEwMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAADBAECBQAGB//EAEIQAAEDAQUFBQUGAwcFAQAAAAEAAhEhAwQSMUEFUWFxkSKBobHBEzJC0fAGFBVSkuFTYvFygpOissLSIzNDVIMW/8QAGgEAAwEBAQEAAAAAAAAAAAAAAQIDAAQFBv/EACwRAAICAQQBAwMEAwEBAAAAAAABAhEDEiExQVEEE5EUImEycYGxocHw0UL/2gAMAwEAAhEDEQA/APDAIjbPerNYissiV1tnjxTYMWaI2zRhZEKQxTbOiKBfdlDLCsEHuTtnZuybKas7Bwgknup5qUsulcnTDDqa2M8XaBGLug16IYbAiDHHfrzC1bZobGI8Rx7okFDGzsZnGQ3SRPqkjlTVyHniadR5MllkX0ESMtCeUpm73VpPuOLm5tFZ+Sbsbr2h2yQDSRPr4K1/tiww2kjMUnpkmlNyemIIwjBa5f8AoG+3hrcIaxzSIzr45pS0tLW1IBdAkRoO7epfbue04+1uOoUPvTsIbQRSRnCeGDSlsr88k5+oUm2268cCF4syHOBMkE1zlCwo5E81GFdajSOCUrewN9mKQZVIRcKvZ2Bdl3o0bVYsGptrcA47vrSn1mrAhunaFD9bv2QHVqtQdVASFXCjYV2FajagOFQAjYVBatQdQHCoIRS1dhQoNgYR7s5oz8p6KmFRhQoKkVeamMpJAVIRIUEIUGwcKIRA1RhWDYKF0K5C4BAaykLgxF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La4SSW5Go0zquXLlHWy2lH//2Q=="), url("https://img.freepik.com/premium-photo/beautiful-landscape-based-3d-rendering-illustration_771975-25.jpg?w=2000"), url("https://static.vecteezy.com/system/resources/previews/022/448/291/original/save-earth-day-poster-environment-day-nature-green-ai-generative-glossy-background-images-tree-and-water-free-photo.jpg");  
  background-size: 30%, 40%, cover; /* Adjusts the background-size */  
  background-repeat: no-repeat, no-repeat, no-repeat;  
  background-position: left top, right top, center;  
  font-family: Arial, sans-serif;  
 }  

 .content {  
  text-align: center;  
  padding: 2rem;  
  background-color: rgba(255, 255, 255, 0.9);  
  border-radius: 10px;  
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);  
 }  

 h1 {  
  color: #333;  
  font-size: 2.5rem;  
  margin-bottom: 1rem;  
 }  

 p {  
  color: #666;  
  font-size: 1.2rem;  
 }  
</style>  
<title>Combined Background Images Example</title>  
</head>  
<body>  
 <div class="content">  
  <h1>Welcome to Jalaj Singhal's page</h1>  
  <p>Learn New Things, Concept and Designs.</p>  
 </div>  
</body>  
</html>

Did you find this article valuable?

Support Jalaj Singhal by becoming a sponsor. Any amount is appreciated!