PDA

View Full Version : Adding a CSS class to the Quantity field


granthams
10-Jun-2004, 01:43 PM
Hi all,

As my subject title suggests, I am looking to add custom CSS classes to the quantity fields when using 'quantity on product page' mode. My problem is that whatever class I add everything changes (colour, border etc.) apart from the overall size, text size & field size. To do this I am simply adding the new class around the NETQUOTEVAR:QUANTITY tag in the Act_ProductLine template.

I probably missing something very basic here but has anyone else experienced problems with this? Got any solutions?

Kind regards.

Granthams

I-CC
10-Jun-2004, 09:15 PM
You need to change it at the INPUT level not the code that calls the whole thing...

Go to Design | Text | Phase -1 ID 2173 and find:

%s<INPUT TYPE=text NAME="%s" SIZE="%d" VALUE="%d">

Then add your class into that :)

granthams
11-Jun-2004, 08:35 AM
Thanks for your help.

However, when I add a class to the prompt you have shown me it only changes the 'quantity' text and not the quantity input box. It is the box I am more concerned about as I would like to make it smaller and more compact.

Kind regards

Granthams

cdicken
11-Jun-2004, 03:36 PM
Change

%s<INPUT TYPE=text NAME="%s" SIZE="%d" VALUE="%d">


to

<span class="yourclassname">%s</span><INPUT TYPE=text NAME="%s" class="yourclassname" SIZE="%d" VALUE="%d">

granthams
11-Jun-2004, 04:03 PM
Thanks Chris.

My problem is fixed!

Regards

Granthams