The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

text-decoration: line-through - not ending when it should?

Go down

text-decoration: line-through - not ending when it should?

Post by smokin.brit on November 7th 2011, 2:48 pm


I am really struggling with this issue and would really like some pointers as to what I am doing wrong.

I have two prices on my site in a row like this "old price, new price"

Price one is meant to be red with a line through it price two black no line through (a common way of displaying sale prices)

I can make the fonts the correct color red/black

I can make the linethrough work but for some reason it continues on through price one AND price two - even in the same color - so I have a red line going through red old price (fine) but it refuses to end there and continues through the black new price - which shoud not be happening.

I can't see where in my code I am going wrong.


.bp_old_price {
        font-weight: bold;
        font-size: 18px;
        color: #B3484B;

.bp_new_price {   
        font-weight: bold;
        font-size: 18px;
        color: black;

I am calling from the PHP file like this



<span class="bp_old_price">
<?php echo $box_cost, $old_price ?>

<span class="bp_new_price">
<?php echo $box_cost, $new_price ?>


Any help would be most welcome - thank you.


New Member

Posts : 1
Reputation : 1
Language : CSS

Back to top Go down

Re: text-decoration: line-through - not ending when it should?

Post by Guest on November 8th 2011, 1:33 pm

Hi smokin.brit

CSS Code:
.bp_new_price {text-decoration:line-through !important;}
.bp_old_price {text-decoration:none !important;}

HTML Code:
<span class="bp_new_price">This is a line trought text</span>
<span class="bp_old_price">This is a simple text</span>


Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum