Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying border style to <SELECT>

Status
Not open for further replies.

RakhiKalra

Programmer
Jun 6, 2003
41
IN
Hi Friends,
I am making a web page and applying CSS to the elements of the form.i applied border to <input> like:-
------------------------------------------------------
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: x-small;
background-color: #FFFFFF;
border: 1px solid Blue;
}
--------------------------------------------------------
my input boxes and buttons are shown as expected but when i write :-
select {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: x-small;
background-color: #FFFFFF;
border: 1px solid Blue;
}
then my combo boxes or select lists are not shown as other elements are..
my form is looking bad cause of inconsistency in the display of different elements...
PLEASE HELP... I WUD B REALLY GREATFUL IF ANY BODY SOLVES THIS PROBLEM OF MINE.
Thanx


Cheers
Rakhi Kalra
 
unfortunately you cannot change the border property of a select box, this is the only form element that has this problem. To get round it you may have to get hold of a free scripted select box

on error goto hell
 
:-(

Anyway Thanx Sashi for telling me the information


Cheers
Rakhi Kalra
 
IE never fixed it but it works in NS...
Free scripted select box? What's that? Link? Thx
 
RakhiKalra, you can use DHTML or JS to create a &quot;dynamic&quot; select box that has different color scheme. Try looking over at:
1) 2)
I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage.
It's no big deal really...
 
GUJUm0deL
Thanx :)... it was the thing i wanted.


Cheers
Rakhi Kalra
 
The thing is, when IE7 comes out, they'll have &quot;probably&quot; fixed it by then and you'll havta go back and get rid of the code bloat...or add more...heh heh. }:^)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top