News:

Support the VirtueMart project and become a member

Main Menu

Custom Fields Dropdowns Locked at 100px Width

Started by MikeW, November 16, 2012, 21:28:45 PM

Previous topic - Next topic

MikeW

I have added some custom field plugins with stock control following this guide: http://www.flexiblewebdesign.com/blog/virtuemart-tutorial-product-custom-fields-with-stock-control-with-screenshots/ and everything is fine until you view the cart. Some of the product names are quite long and the dropdown is locked at 100px using this inline code/css:
<select style="width:100px !important;" class="attribute_list customfield_id_8" name="customPlugin[8][stockable][selectoptions1]" id="selectoptions1">

I have tried looking at all of the source files to find where the !important is added to remove it so I can set it in my template's CSS but can't find it. Does anyone know where this is set so I can change it? Or is there a way to override it? Everything I've tried won't work, I even read article's explaining !important, it's priority levels, and how to override it with specificity and selectors. Nothing works (I presume because it's inline it ignores any other cascades). Any ideas would be greatly appreciated. I've tweaked everything else to work with my template but this is making me insane trying to figure it out.

[attachment cleanup by admin]

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

MikeW

Quote from: bytelord on November 20, 2012, 13:56:04 PM
Hello,

Take a look over here: http://forum.virtuemart.net/index.php?topic=110190.msg369321#msg369321
Thank you for pointing me in the right direction. I must not have searched well enough before posting.

bytelord

You are welcome, just post it and find your question also and point out  ... :)

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!