473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Change DropDown border color in IE7

200 100+
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 18865
drhowarddrfine
7,435 Expert 4TB
Haven't a clue what that is but it's neither html or css.
Oct 15 '09 #2
ismailc
200 100+
A Drop Down Box border color!
Oct 15 '09 #3
drhowarddrfine
7,435 Expert 4TB
Googling shows that "dropdownlist" 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 Expert 1GB
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 100+
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 Expert 1GB
1px is pretty thin, I think there's something else going on. Can you post a screenshot?
Oct 18 '09 #7
ismailc
200 100+
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 Expert Mod 8TB
to increase the height you can also try the line-height property.
Oct 19 '09 #9
ismailc
200 100+
does not do anything line-height: 0px;
Oct 19 '09 #10
Dormilich
8,658 Expert Mod 8TB
er, line-height does not have anything to do with border, it’s for text layout.
Oct 19 '09 #11
ismailc
200 100+
Thanks for helping :)
Oct 19 '09 #12
ismailc
200 100+
Hi, the line-height does not change the dropdown height

i have to change the font, is there not another way?

Regards
Oct 19 '09 #13
TheServant
1,168 Expert 1GB
so changing:
Expand|Select|Wrap|Line Numbers
  1. font: 8px red ...
for the select box doesn't work?
Oct 19 '09 #14
ismailc
200 100+
Is there any other way besides changing the font size?

Thanks
Oct 20 '09 #15
TheServant
1,168 Expert 1GB
I have lost track of what you are trying to do and what the problem is. Please give the basic html, css and a screenshot for further assistance.
Oct 20 '09 #16
ismailc
200 100+
Hi,

I'm trying to increase the height of dropdownlist <select> tag textbox.
I found that changing the border color in IE7 is not possible & there fore changed the font to increase the height of the dropdown.

I increased the height by increasing the font - but I dont really want to increase the font.

Thank You :)
Oct 20 '09 #17

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

Similar topics

2
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...
1
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...
2
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
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
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...
1
by: xujinqian | last post by:
Who can tell me: how to change the border color of groupbox controls(VS2003)???
1
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...
1
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...
3
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.