I have this code:
http://jsfiddle.net/7jGHS/1299/
Code HTML:
<div class="text1"><h2><span>THIS IS A TEST</span></h2>
<p>1800 - 1570 - 000</p>
<h2><span>THIS IS A TEST</span></h2>
</div>
<div class="text2"><h2><span>THIS IS A TEST</span></h2>
<p>1800 - 1570 - 000</p>
<h2><span>THIS IS A TEST</span></h2>
</div>
CODE CSS:
h2 { width:100%; text-align:center; border-bottom: 1px solid #000; line-height:0.1em; margin:10px 0 20px; }
h2 span { padding:0 10px; }
.text1{float:left;display:inline-block;width:50%;}
.text2{float:left;display:inline-block;width:50%;}
I tried to create this effect "----text----"
Currently my line cut text and do not want this.
In the footer of the site I tried to change and watch the show
What is wrong at my code?Can you help me please to solve this problem?
Thanks in advance!