CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS 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 Dev Shed Forums Sponsor:
  #1  
Old June 28th, 2002, 05:27 PM
mattyd2 mattyd2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 1 mattyd2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
css form element colours

Hi,

Can anyone point me in the direction of some good tutorials on colouring <form> elements such as textareas and menus etc.

Im kinda after the effect that they have used on UDZone (URL)

Ive been able to colour the textareas and choose border colour and solid etc. but im struggling to get one style to affect all the elements at the same time, especially the list menus and radios etc.

Done this so far:

<style type="text/css">
<!--
input, select, textarea, submit, list, menu, reset
{background-color:#ffffff; border: #006699 1px solid; font-size:10pt; font-family:Ariel,verdana}

-->
</style>


........which is fine for textareas for bugger all use for anything else..

Any help would be appreciated.
Matt

Reply With Quote
  #2  
Old June 29th, 2002, 03:31 AM
Utopia's Avatar
Utopia Utopia is offline
superficial
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Peterborough, England
Posts: 188 Utopia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 8 sec
Reputation Power: 12
ive got one one on my site, www.designplace.org

__________________
_______________
Matt

Reply With Quote
  #3  
Old June 29th, 2002, 07:38 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 12
Using CSS2,you can make CSS for input elements like this:
input[type="checkbox"] {
}
input[type="button"] {
}
etc.

You can also use pseudo classes,this for example will change it when the button has focus (is active):
input[type=button]:active {
}
etc.

Here comes the interesting part of using pseudo elements.You can set a green background for options,and a yellow background when it is checked:
option {
background-color:green;
}

option:checked {
background-color:yellow;
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css form element colours

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap