I wanted a design like this ; 

I wrote my css like this :
text here.my-title:before,
.my-title:after {
    background-color: #CCCCCC;
    content: "";
    display: inline-block;
    height: 2px;
    position: relative;
    vertical-align: middle;
    width: 32%;
    margin-left: -2%;
}
}
This seems correct in local, but becasue of the final } brace it was giving error in production. How to do it with simpler CSS, so that i can get the desired design !
 
     
    