HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 31st, 2004, 07:30 PM
seankumar seankumar is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 seankumar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old September 1st, 2004, 11:15 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
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

Reply With Quote
  #3  
Old September 6th, 2004, 08:56 AM
BastianBalthasa BastianBalthasa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 BastianBalthasa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow

Quote:
Originally Posted by selwonk
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

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.

Reply With Quote
  #4  
Old September 6th, 2004, 05:50 PM
seankumar seankumar is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 seankumar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #5  
Old September 7th, 2004, 04:42 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,942 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 9 h 49 m 28 sec
Reputation Power: 62
No problem chaps...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > CSS on SELECT Element in Form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway