Skip to content

Instantly share code, notes, and snippets.

@DrAzraelTod
Created May 11, 2012 10:50
Show Gist options
  • Save DrAzraelTod/2658933 to your computer and use it in GitHub Desktop.
Save DrAzraelTod/2658933 to your computer and use it in GitHub Desktop.
CSS-Pfeil-Beispiel
<!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