Skip to content

Instantly share code, notes, and snippets.

@SBaof SBaof/dabblet.css
Last active Sep 14, 2017

Embed
What would you like to do?
Translucent borders
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);
background: url('http://via.placeholder.com/500x500') no-repeat;
background-size: cover;
background-clip: padding-box;
/* styling */
max-width: 20em;
padding: 2em;
margin: 2em auto 0;
font: 100%/1.5 sans-serif;
}
<div>
Can I haz semi-transparent borders?
Pretty please?
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.