I have this list of words i want to align on the center, every list item consists of two words divided by a '-'(hyphen). Is there an easy way i can align spot on the hyphen? When words are different in lenght now, the hyphen isn't in the center anymore.
I've made a fiddle to make my problem clear:
http://jsfiddle.net/seLvC/
my current code:
.progress-ww {
font-size: 0.8rem;
line-height: 0.8rem;
text-align: center;
}
<section>
<div class="progress-ww">
<div>
<div>lopen - ik loop</div>
<div>klimmen - ik klim</div>
<div>geven - ik geef</div>
<div>schreeuwen - ik schreeuw</div>
<div>blozen - ik bloos</div>
</div>
</div>
</section>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…