Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change color of dropdown boxes?


charles

Recommended Posts

How do I change the color of the dropdown box frame for 'manufacturers' and 'currencies'. I have played around with the .css file (this should give me a 5 wide purple frame with white field and black print)

 

CHECKBOX, INPUT, RADIO, SELECT {

background: #ffffff; 
border-color: #9966ff;
border-width: 5px;
color: #000000;	
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
}

 

and can successfully change the color of the box 'background' and text 'color' but 'border-color' and border-field' do not work for these two boxes.

 

They do, however, affect the quick search box, but there seems to be another set of definitions which also affects that box, resulting in a combination of effects.

 

Thanks, Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

OK, I've solved the quick search box problem. But, I still don't understand why .css doesn't control the frame around the dropdown boxes.

 

Can someone please help me with this? :)

 

Thanks, Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

/catalog/includes/boxes/manufacturers.php

about line 63/64

 

change:

                                   'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());
   }

to:

                                   'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%; border: 1px solid #ff00ff; background-color: #fffaf0;"') . tep_hide_session_id());
   }

 

Opera only shows border + background

Many browsers: show background but no border

"If you're working on something new, then you are necessarily an amateur."

Link to comment
Share on other sites

Thanks. Once again though, I had control over the background color and the width but the frame thickness and color remained unchanged. When I checked the profile page on someone else' site which was obviously dramatically reworked, it was the same on the countries dropdown. So, after playiing around with the display settings in control panel, it seems that these are controlled by windows and the browser settings for these buttons are not under the control of mortal people. The 1px light blue color frame and button which so fashionably counterpoints the scroll buttons on my browser are XP default settings, permanent, and non-negotiable. :rolleyes:

 

Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...