Horje
CSS technique for a horizontal line with icons in the middle Code Example
CSS technique for a horizontal line with icons in the middle
<h1>Heading</h1>
<h1>This is a longer heading</h1>

h1 {
  overflow: hidden;
  text-align: center;
}

h1:before,
h1:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 50%;
}

h1:before {
  right: 0.5em;
  margin-left: -50%;
}

h1:after {
  left: 0.5em;
  margin-right: -50%;
}




Css

Related
place image on top right inside flex css Code Example place image on top right inside flex css Code Example
ease in out css Code Example ease in out css Code Example
menu always center css Code Example menu always center css Code Example
how to horizontally center header at the top of page with flexbox css Code Example how to horizontally center header at the top of page with flexbox css Code Example
how to space out buttons css Code Example how to space out buttons css Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8