LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

PARTIAL WIDTH HEADER BORDER

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duo Reges: constructio interrete. Refert tamen, quo modo. Si id dicis, vicimus. Quod equidem non reprehendo;

CSS
h2 {
  margin: 0 auto;
}

header {
  display: inline-block;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
header::after {
  content: '';
  position: absolute;
  width: 50%;
  left: 25%;
  right: 25%;
  bottom: 0;
  border-top: 2px solid gray;
}

p {
  margin-top: 0;
}

.wrap {
  max-width: 840px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  text-align: center;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}

body {
  background-color: #c0c0c0;
  color: #404040;
  font-weight: 300;
  padding: 20px;
}
Term
Sat, 04/14/2018 - 20:49

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv