-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
  • 30,334
  • 10
  • 78
  • 137

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
  • 69,876
  • 20
  • 132
  • 137