So what im trying to do is to make space between middle line and middle text. This is my fiddle: https://jsfiddle.net/abqy4w1f/. So i want that left and right side is 10px from circle. Any suggestion?
.outter-h2 {
width: 200px;
text-align: center;
border-bottom: 1px solid #cccccc;
line-height: 0.1em;
margin: 35px auto 35px;
}
.outter-span {
background: #fff;
padding: 0 10px;
border: 1px solid #cccccc;
border-radius: 50%;
color: #bec3c7;
}
<h2 class="outter-h2"><span class="outter-span">?</span></h2>
You can easily create a fake space using CSS
box-shadow
property (this is assuming the shadow color and the background color are the same)All you have to do is add this line to
.outer-span
:This solution keeps the HTML intact.
Demo:
This is done(corrected) exactly what you want.
Click here for DEMO
try this i think this is the solution you wanted. please let me know if i am correct or not
For this particular example you ca do this: