ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I change the background color of a HTML <input>

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS
View previous topic :: View next topic  
Author Message
newbie



Joined: 01 Oct 2004
Posts: 11

PostPosted: Tue Oct 19, 2004 10:56 am    Post subject: How do I change the background color of a HTML <input> Reply with quote

How do I change the background color of a HTML <input>, <textarea> and <select> tags?

Thanks
_________________
I'm still learning..
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Tue Oct 19, 2004 12:29 pm    Post subject: Reply with quote

Just put the following in your <head></head> HTML section:

Code:

<style>

input {
    background-color: #E6F0FA;
}

select {
    background-color: #E6F0FA;
}

textarea {
    background-color: #E6F0FA;
}

</style>

_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
newbie



Joined: 01 Oct 2004
Posts: 11

PostPosted: Tue Oct 19, 2004 12:48 pm    Post subject: Reply with quote

Thanks Wink
_________________
I'm still learning..
Back to top
View user's profile Send private message
Missie



Joined: 06 Feb 2006
Posts: 25

PostPosted: Mon Feb 06, 2006 7:45 pm    Post subject: Reply with quote

Yeah thanks! Smile I also didn't know have to do that. Smile I'm kinda new at this kinda stuff. Smile Me and my sisters have sites, but they are kinda lame because we don't know how to do some simple things like this. Smile So thanks from me to. I actually was just going to ask this same question. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial