Created
May 11, 2012 10:50
-
-
Save DrAzraelTod/2658933 to your computer and use it in GitHub Desktop.
CSS-Pfeil-Beispiel
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> | |
<title>Arrow</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<style type="text/css"> | |
.box:before { | |
display: block; | |
margin: -10px 0 10px 85px; | |
width: 0; | |
height: 0; | |
border-bottom: 10px solid #0F4197; | |
border-left: 10px solid transparent; | |
border-right: 10px solid transparent; | |
content: ""; | |
} | |
.box { | |
position: absolute; | |
top: 10px; | |
left: 10; | |
width: 200px; | |
height: 50px; | |
background-color: #0F4197; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box">Test!</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment