Skip to content

Instantly share code, notes, and snippets.

@sudarshanReddykurri
Created March 12, 2016 18:26
Show Gist options
  • Save sudarshanReddykurri/aa4bb60c0a5ddb97c6d2 to your computer and use it in GitHub Desktop.
Save sudarshanReddykurri/aa4bb60c0a5ddb97c6d2 to your computer and use it in GitHub Desktop.
CSS Border Image Demo using Gradients
/* CSS Border Image Demo using Gradients */
.bi{
padding: 1em;
border: 1em solid transparent;
background: linear-gradient(white, white),
url("http://3.imimg.com/data3/HO/LB/MY-9934284/rainbow-and-teakwood-stone-mosaic-tiles-250x250.jpg");
background-size: cover;
background-clip: padding-box, border-box;
background-origin: border-box;
width: 200px;
height:200px;
margin: 20px;
}
<!-- CSS Border Image Demo using Gradients -->
<div class="bi"></div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment