LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Fallback SVG CSS backgrounds

CSS
body { 
  
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/91525/svg-no.png");
  
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/91525/svg-ok.svg"), 
    linear-gradient(transparent, transparent);
  
  background-size: 248px 248px;
}

Description

This no-js fallback technique uses layered backgrounds to cause older browsers to display a PNG instead of the SVG used by modern browsers.
Term
Wed, 12/27/2017 - 07:06

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv