Jump to content

Where to change length of displayed choices in attributes fields on product.php?


Recommended Posts

Can someone please point me in the right direction

On the proctuct.php page the attribute choices cannot be seen fully unless you click on to select one.

I have included an image of one such attribute.

I'm sure that it should be a simple matter to change the length of the field.

Or does anyone have another hack?

1807_tlLcw7fuuinJcNHFU5I9_t

Link to comment
Share on other sites

Theres a section in the glocal.css file that you can add a width too

#primary_block div#attributes p, #quantity_wanted_p{ 
   height:2em;



The only problem is when you add the width element it pushes the whole options dropdown menu to the right and overlaps the next box, and I cant see how to move it back again.

Link to comment
Share on other sites

  • 1 year later...

Add code like the following to css/global.css in your theme's directory:

#primary_block form#buy_block label { width: 50px; }
#primary_block div#attributes select { width: 150px; }



The code increases the width of the dropdown box by 50 pixels and reduces the width of the label by 50px to compensate.

Link to comment
Share on other sites


}
#primary_block div#attributes input,select{
   font-family: verdana;
   font-size:   11px;
   color:#000000;  
    border: #808080 solid 1px; margin-top:0px; 
    border-top-color:#808080; 
    border-bottom-color:#808080;
}





ok thanks

i tried this and now i can see the whole attribute


and the select like this :


13867_RPJuUnh1EmJ9coKmrd3m_t

Link to comment
Share on other sites

×
×
  • Create New...