Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
    <div class="title">
      <span class="caption">Headline</span>
      <span class="line"></span>
  </div>
</body>
</html>
 
body {
  background-color: #fff;
}
.title {
    position: relative;
    height: 36px;
    line-height: 1;
    text-align: center;
}
.title .caption {
    position: relative;
    z-index: 2;
    padding: 0 32px;
    font-size: 24px;
    font-family: Arial, sans-serif;
    background-color: #fff;
}
.title .line {
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: 1px;
    background-color: gray;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Lyplbapro
0viewers