473,563 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change DropDown border color in IE7

200 New Member
Good day,

Change DropDownList border color in IE7

I read that this is not possible in IE but that was some time back and i'm using IE7 now.

Is there a workaround in IE7 to change the border color of a dropdown.

Regards
Oct 15 '09 #1
16 18884
drhowarddrfine
7,435 Recognized Expert Expert
Haven't a clue what that is but it's neither html or css.
Oct 15 '09 #2
ismailc
200 New Member
A Drop Down Box border color!
Oct 15 '09 #3
drhowarddrfine
7,435 Recognized Expert Expert
Googling shows that "dropdownli st" is an ASP function of some sort. You'd have better luck asking on that forum because it's not directly related to html or css. If all you want to do is change the border color in general, in CSS you would just add 'border: #yourcolor'.
Oct 15 '09 #4
TheServant
1,168 Recognized Expert Top Contributor
I think he means a <select> tag...

If you haven't already read this, do! Pay attention especially to the second reply:
As Diodeus stated, IE doesn't allow anything but the default border for <select> elements. However, I know of two hacks to achieve a similar effect :

Use a DIV that is placed absolutely at the same position as the dropdown and set it's borders. It will appear that the dropdown has a border.

Use a Javascript solution, for instance, the one provided here.

It may however prove to be too much effort, so you should evaluate if you really require the border.
Oct 15 '09 #5
ismailc
200 New Member
Thank You All, nearly winning.

is there a way of to make the border more narrow or not so bold, border: 1px solid becuase it looks like a bold border around the drop down

<div style="border: 1px solid blue;">
<select style="width: 100%;">

Please Assist!
Oct 16 '09 #6
TheServant
1,168 Recognized Expert Top Contributor
1px is pretty thin, I think there's something else going on. Can you post a screenshot?
Oct 18 '09 #7
ismailc
200 New Member
Thank You I have been struggling the entire Friday & went back to increase the font of the dropdown to increase the height.

I did not have much time :)

If you find a solution - please let me know

Thank You :)
Oct 19 '09 #8
Dormilich
8,658 Recognized Expert Moderator Expert
to increase the height you can also try the line-height property.
Oct 19 '09 #9
ismailc
200 New Member
does not do anything line-height: 0px;
Oct 19 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2386
by: Susan Cranford | last post by:
I am trying to change the border color of certain select elements. I have tried inline and on my style sheet to do 'border-color: red' and I cannot get this work. I can change the background and font colors but not the border colors no matter what I try! Can someone help me with this one? SusanC *** Sent via Developersdex...
1
4288
by: csgraham74 | last post by:
Hi, Just wondering if anyone has used a free 3rd party drop down list control for asp.net. I need to find one that has a border color that can be changed as the built in one does not appear to work correctly. Or alternatively a workaround for the the built in dropdownlist border color issue in asp.net (VB) Any help appreciated.
2
19844
by: Ramesh | last post by:
Hi, Is there any solution available for changing the border color of the textbox control in VB.NET? Pls provide me with a sample code. Thanks in advance Ramesh
31
7167
by: jcrouse | last post by:
Is there a quick and easy way to change the color of a label controls border from the default black to white? Thank you, John
7
5684
by: Hank | last post by:
To this point I have used a color for my form background (detail, header, or footer) that is approximately the same as the hard-wired background color of command buttons. For the record, the color value I use is -214748363. Then I choose a different color (anything - pick white for instance) for the form background. When I switch to form...
1
1660
by: xujinqian | last post by:
Who can tell me: how to change the border color of groupbox controls(VS2003)???
1
2172
by: Arpan | last post by:
The output of a DataGrid is nothing but a HTML table. To color or change the width of the outer 4 borders of a DataGrid, one can use the properties "BorderColor" & "BorderWidth" respectively but how does one change the border color & width of the 4 borders surrounding each cell? There are 4 other properties apparently meant for changing the...
1
22453
by: David Veeneman | last post by:
Is there a simple way to change a UserControl border color? I'm creating a UserControl that will have a border, using the UserControl.BorderStyle property. The standard border is black; I'd like to change the color to something a little more appealing. I've tried overriding OnPaint, like this: public partial class MyControl : UserControl...
3
17516
by: =?Utf-8?B?Q2xhZXNXZWRpbg==?= | last post by:
I want my application to have a special color on the Window forms borders. Not the standard one (which the user has set up in his desktop-properties)... How can I do this? I can change background/foreground colors etc and the border also have some propereties, but not the color and shading... Claes
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.