-2

Tried everything, with ul's... div's... but it doesn't appear how it should do.

The main div has margin 0 auto. The main div is 1030px width.

I bet it's a stupid thing...

Image in DIV

Chris Martin
  • 29,484
  • 8
  • 71
  • 131

1 Answers1

0

Demo Fiddle

HTML

<div><span>Things to Know</span></div>

CSS:

div{
    text-align:center;
}
div:after{
    position:relative;
    display:block;
    border-top:1px solid grey;
    top:-10px;
    height:1px;
    content:'';
}
div span{
    background:white;
    position:relative;
    z-index:1;
}
SW4
  • 67,554
  • 20
  • 126
  • 133