Pure CSS Arrows

Web Design & Web Development

Demo

Sponsored links

 

Code

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Pure CSS Arrows</title>
    <link rel="stylesheet" type="text/css" href="https://demo.plantpot.works/assets/css/normalize.css">
    <link rel="stylesheet" href="https://use.typekit.net/opg3wle.css">
    <link rel="stylesheet" type="text/css" href="style.css">
  </head>
  <body>
    <div id="container">
      <h1>Pure CSS <span>Arrows</span></h1>
      <div class="arrows">
        <div class="arrow-left"></div>
        <div class="arrow-top"></div>
        <div class="arrow-down"></div>
        <div class="arrow-right"></div>
      </div>
    </div>
  </body>
</html>

CSS

@charset "utf-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  background-color: #003449;
  font-family: futura-pt, sans-serif;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 15px;
}
.arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin-top: 30px;
}
.arrow-left {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  width: 30px;
  height: 30px;
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
}
.arrow-top {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 30px;
  height: 30px;
  margin-top: 15px;
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
}
.arrow-down {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
}
.arrow-right {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  width: 30px;
  height: 30px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
}
h1 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  letter-spacing: 1px;
  text-align: center;
}
h1 span {
  color: #ffd892
}
@media screen and (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
}