-
-
Save pujansrt/9abe0fe0899aea100d44f98e29100743 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/gifucenoho
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.ace_breakpoint { /* our rectangle */ | |
width:50px; | |
height:16px; | |
background-color: #663399; | |
position: relative; | |
} | |
.ace_breakpoint:after { /* our pseudo-element */ | |
content:"";/* required */ | |
position: absolute; /* takes the 'cap' out off flow */ | |
top:0; /* stick it to top edge of the sign */ | |
left:100%; /* push it way overto the right*/ | |
height:0; /* we're doing this with borders remember */ | |
width:0; | |
border-width: 8px; | |
border-style:solid; | |
border-color:#663399; /* same as bg of our rectangle */ | |
/* now we make some of theborders disappear*/ | |
border-top-color:transparent; | |
border-bottom-color:transparent; | |
border-right-color:transparent; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="ace_breakpoint"> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.ace_breakpoint { /* our rectangle */ | |
width:50px; | |
height:16px; | |
background-color: #663399; | |
position: relative; | |
} | |
.ace_breakpoint:after { /* our pseudo-element */ | |
content:"";/* required */ | |
position: absolute; /* takes the 'cap' out off flow */ | |
top:0; /* stick it to top edge of the sign */ | |
left:100%; /* push it way overto the right*/ | |
height:0; /* we're doing this with borders remember */ | |
width:0; | |
border-width: 8px; | |
border-style:solid; | |
border-color:#663399; /* same as bg of our rectangle */ | |
/* now we make some of theborders disappear*/ | |
border-top-color:transparent; | |
border-bottom-color:transparent; | |
border-right-color:transparent; | |
}</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ace_breakpoint { /* our rectangle */ | |
width:50px; | |
height:16px; | |
background-color: #663399; | |
position: relative; | |
} | |
.ace_breakpoint:after { /* our pseudo-element */ | |
content:"";/* required */ | |
position: absolute; /* takes the 'cap' out off flow */ | |
top:0; /* stick it to top edge of the sign */ | |
left:100%; /* push it way overto the right*/ | |
height:0; /* we're doing this with borders remember */ | |
width:0; | |
border-width: 8px; | |
border-style:solid; | |
border-color:#663399; /* same as bg of our rectangle */ | |
/* now we make some of theborders disappear*/ | |
border-top-color:transparent; | |
border-bottom-color:transparent; | |
border-right-color:transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment