Thread: css positioning
View Single Post
  #1  
Old 08-10-2009, 03:26 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default css positioning

in my products.tpl file, I want to add an icon for reduced products,

at the moment I have:
Code:
{if $discount gt 0}<div class="SaveMoneyLabel"><span id="save_percent">{$discount}%</span></div>{/if}

where the current save money section is below the description, then in my css I set the size, image etc..

I really want this to be at the top of the product details section, but at that point in the tpl $discount is not set, so I can't just move the if statement further up.

My descriptions vary in size, so I can't just change the top: 10px; setting for the savemoneylabel as the value it needs to be is different each time.

Can anyone help me either change the if statment so I can move it further up, or change the css to have it positioned at the top of the PList section?

TIA
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote