There is a joint unit with the price of standard and discount. I want to change the output sequence of the standard price, then the discount, and both blocks should be displayed in the center and the price will be different each time (and therefore the width of the blocks will be different each time). How can this be done with styles without changing the structure of html ? fiddle
del { float: right; } .price { text-align: center; } <div class="price"><del><span class="amount">11.390 <ruble title="руб.">руб.</ruble></span></del> <ins><span class="amount">9.340 <ruble title="руб.">руб.</ruble></span></ins> </div>