Art Deco borders

A quick demo of some Deco borders thrown together with a couple of pseudo-elements

by RenaissanceDesign

HTML

<script src="https://fonts.googleapis.com/css?family=Questrial"></script>
<div class="deco">
  <h2>Art Deco borders with pseudo-elements</h2>
  <p>
    The only requirement is that the .deco element has non-static position, so the pseudo-elements can be absolutely positioned relative to it.
  </p>
</div>

CSS

@import url(//fonts.googleapis.com/css?family=Questrial|Limelight);

body {
  background-color: #fff;
  font-family: 'Questrial', sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

h2 {
  font-weight: normal;
  font-family: 'Limelight', sans-serif;
}

div {
  width: 50%;
  margin: 2em auto;
  padding: 2em 2.5em;
}

.deco { 
  border: 2px solid;
  position: relative;
}

.deco:before, .deco:after {
  border: 1px solid;
}

.deco:before, .deco:after {
  content: "";
  position: absolute;  
}

.deco:before {
  top: -5px;
  right: 2px;
  bottom: -5px;
  left: 2px;
}

.deco:after {
  top: 2px;
  right: -5px;
  bottom: 2px;
  left: -5px;
}