Skip to content

Instantly share code, notes, and snippets.

@argestes
Created January 24, 2013 19:55
Show Gist options
  • Save argestes/4627030 to your computer and use it in GitHub Desktop.
Save argestes/4627030 to your computer and use it in GitHub Desktop.
Untitled
div {
width: 100px;
height: 50px;
/* The background is used to specify the border background */
background: -moz-linear-gradient(top,#f00, #ff0);
background: -webkit-linear-gradient(top,#fff,#222, #fff);
/* Background origin is the padding box by default.
Override to make the background cover the border as well. */
-moz-background-origin: border;
background-origin: border-box;
/* A transparent border determines the width */
border: 1px solid transparent;
border-top:none;
border-bottom:none;
box-shadow:
inset -999px 0 0 #fff; /* The background color */
}
p{
margin:auto;
}
<div class="one">
<div>
<p>Selam</p>
<p>Merhaba</p>
</div>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment