LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Transparent Image Background

A by Fathy AR

Sometimes when we see a transparent PNG image then we will see the background in the form of white and gray boxes. Well this is what we will make. With just a few lines of CSS code we can make it.

CSS
.bg-img-transparent {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background-position: 0px 0px, 10px 10px;
  background-size: 20px 20px;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
}

Description

Sometimes when we see a transparent PNG image then we will see the background in the form of white and gray boxes. Well this is what we will make. With just a few lines of CSS code we can make it.
Term
Sat, 04/14/2018 - 20:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv