Created
November 13, 2012 14:01
-
-
Save lukin0110/4065898 to your computer and use it in GitHub Desktop.
Comment window in pure css
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
<html> | |
<head> | |
<style> | |
body{padding:100px;} | |
.arrow{ | |
width:0px; | |
border-top:0px solid red; | |
border-left:50px solid transparent; | |
border-right:50px solid transparent; | |
border-bottom:50px solid purple; | |
} | |
.box{ | |
width:100px; | |
padding:20px; | |
border:1px solid #ccc; | |
position:relative; | |
} | |
.box:before{ | |
content:''; | |
border-left:9px solid #ccc; | |
border-right:9px solid transparent; | |
border-bottom:9px solid #ccc; | |
position:absolute; | |
top:-9px; | |
left:9px; | |
} | |
.box:after{ | |
content:''; | |
border-left:8px solid white; | |
border-right:8px solid transparent; | |
border-bottom:8px solid white; | |
position:absolute; | |
top:-8px; | |
left:10px; | |
} | |
</style | |
</head> | |
<body> | |
<div class="box"> | |
Hallo ik ben een box | |
</div> | |
<textarea>banaan is lekker '</textarea> | |
<script> | |
function test(){ | |
window.location = '#ddd'; | |
} | |
</script> | |
<a href="javascript:void(0)" onclick="test()">Test</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment