PDA

View Full Version : justify product description text


EdgeImpact
31-Dec-2003, 09:59 PM
How do I justify the product description text - my client has asked for this and I'm having problems getting it right.

I've created a new css style based on actxsmall as follows:-

.actxsmalljustify{
font-size:x-small;
text-align: justify;
color:NETQUOTEVAR:FGCOLORCSS;}

I've assigned this style to the product description as follows

<td><span class="actxsmall"><b>NETQUOTEVAR:PRODUCTPRICE</b></span> <br>
<span class="actxsmalljustify">NETQUOTEVAR:PRODUCTDESCRIPTION</span>
</td>

This doesn't seem to have made any difference at all as the text remains left justified instead of left and right justified. What am I doing wrong?


Thank you

Darren
02-Jan-2004, 09:02 AM
Hi there.

Could you not create 2 table cells, on for Price and the other for description, and align the description cell to the right?

I hope this helps.

EdgeImpact
02-Jan-2004, 09:16 AM
I don't think right aligning the description would give the effect we need. We want the text to be justified, ie aligned both left and right.

NormanRouxel
02-Jan-2004, 12:42 PM
Try using <div> and </div> instead of <span>.

Also you can just do:-

<div align="justify">NETQUOTEVAR:PRODUCTDESCRIPTION</div>

And you'll get the existing CSS rules but justified.

Norman