I current has the following result:

But it should look like this:

m and s should be aligned at the bottom.
My code is:
.right-timer-area { width: 128px; height: 52px; line-height: 52px; font-size: 36px; font-weight: 300; color: #ffa000; float: right; margin: 0 50px 0 0; } .right-timer-area > span.timer-centered { height: 36px; display: inline-block; vertical-align: middle; } .right-timer-area > span.timer-centered span { display: inline-block; float: left; line-height: 1; vertical-align: bottom; } .right-timer-area .timer-sm { font-size: 16px; }
<div class="right-timer-area"> <span class="timer-centered"> <span class="timer-big">15</span> <span class="timer-sm">m</span> <span>-</span> <span class="timer-big">45</span> <span class="timer-sm">s</span> </span> </div>
But that did not work. Are there any solutions without changing .right-timer-area (it is centered inside another div ) and without table-layout ? If so, how?
JS Fiddle: http://jsfiddle.net/zmads0rp/1/
source share