0

I have this design that I have to code to HTML, but I got stuck on title section. This is what I want to do:

enter image description here

So when creating content with title, those stripes fits automatically according to the length of the title. Possible?

laaposto
  • 11,835
  • 15
  • 54
  • 71
Optimus Prime
  • 499
  • 3
  • 8
  • 18

1 Answers1

1

checkout this link , if this works fine for you Try This demo

[http://jsfiddle.net/3Vqjg/]

Updated Demo

<div class="h-border">
  <div class="heading">
    <h2>About Me</h2>
  </div>
</div>

.h-border {
border-top: 1px solid #e3e3e3;
border-bottom: 1px solid #e3e3e3;
padding-top: 10px;
padding-bottom: 10px;
margin-top: 30px;
margin-bottom: 10px;
}

.heading {
width: 100%;
height: 40px;
line-height: 40px;
text-align: center;
/*background-image: url(../img/cross-pattern.png);
background-repeat: repeat;*/
background: #f00;
}

h2 {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 300;
text-transform: uppercase;
margin: 0 auto;
padding: 0 10px;
background:#fff;
width:30%;
display: inline;
}
Developer
  • 1,409
  • 2
  • 23
  • 46