Skip to content

Instantly share code, notes, and snippets.

@emilbayes
Created August 26, 2014 12:05
Show Gist options
  • Save emilbayes/b84f86121f87595851ed to your computer and use it in GitHub Desktop.
Save emilbayes/b84f86121f87595851ed to your computer and use it in GitHub Desktop.
Semantic CSS Arrow
body {
width: 360px;
}
.box {
width: 100%;
}
.box header {
background: #ddd;
height: 80px;
padding: 15px;
border-bottom: 2px solid #c1c1c1;
position: relative;
}
.box header:after {
content: '';
width: 0; height: 0;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 8px solid #ddd;
position: absolute;
left: calc(50% - 4px);
margin-top: -1px;
z-index: 1;
}
.box header:before {
content: '';
width: 0; height: 0;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 8px solid #c1c1c1;
position: absolute;
left: calc(50% - 4px);
bottom: -10px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<article class="box">
<header>
<h1>
<small>Skabelon til møder af</small>
opertaionel og taktisk karakter
</h1>
</header>
<h2>
Mødetyper <a href="#" class="icon icon-plus"></a>
</h2>
</article>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment