News:

Support the VirtueMart project and become a member

Main Menu

Set fixed width for dropboxes

Started by vigier, September 13, 2012, 00:50:16 AM

Previous topic - Next topic

vigier

Hi,
I want the dropboxes in my productdetails to be fixed width. I have a product that has 10 dropboxes and all of them have a different width, which looks really messy.
I've been changing the classes in vmsite-ltr.css, but with no effect. Does anyone know how to do this?
Adding width=235px to the code on the place where the field->display is called doesn't work also.

Kind regards,
Vigier

ivus

Hi vigier,

are you using any third party themes?

If NOT try this: "/components/com_virtuemart/assets/css/vmsite-ltr.css" @ line 209. INSERT DIRECTLY AFTER



.product-fields .product-field input {position:relative;left:33px;}
.product-fields .product-field select {width:500px;}



You need to define a new style for the select.

.product-fields .product-field select {width:500px;}

vigier


Polleke

Hi
I have the same issue with radio button. (see attachment)
I would love to have more to the left. and under each other. So No under Yes.

I think this is the line to alter:
.product-fields .product-field input[type=radio] {position:relative;left:33px;}
Just do not know into what  :-\

Kind regards Jan

[attachment cleanup by admin]

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Polleke

Hi,
thanks for your answer. But i already used firebug. I just do not known how to alter it so i get it right.

Can you help me with that.

regards Jan