|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS on SELECT Element in Form
Is there a way to use CSS (or an alternative) to define the border colors and scrollbar colors of a dropdown menu/SELECT element within a form? I tried using
.archivebox {border: green 1px solid} to get it to work but it does not. I do have class="archivebox" in the SELECT tag as well. For the scroll bars I tried the standard stuff used for an entire page's scroll bars, but no luck. Any help is appreciated. Thanks. |
|
#2
|
||||
|
||||
|
Hi
I think it's fairly limited. You can certainly set the background colour, but I'm not sure if there is much else. I think that the technical reason for this is something to do with FORM elements being considered "exceptional" elements which work the same as, for example, an IFRAME - another element who's border style can not be controlled using CSS MK |
|
#3
|
|||
|
|||
|
Quote:
that's not the whole truth! Iframe borders can be controlled via css!! the borders of select boxes can only be controlled through css for netscape users (version 6.0 and later) i think. For other useragents you'll have to do some dhtml, but i tell you, thats not really sensefull (lots of crossbrowsercoding etc...) a better solution would be to bind in a flash animation. in flash you can build any webcontrol you want. ![]() |
|
#4
|
|||
|
|||
|
Thought So
Thanks guys, that's pretty much what I was thinking before, but just needed some confirmation on that. And selwonk I hate to say it, but BastianBalthsa is right in regard to the ability to use CSS on controlling IFRAME border properties (I've done it before). But once again thanks for your replies.
|
|
#5
|
||||
|
||||
|
No problem chaps...
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > CSS on SELECT Element in Form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|