Jul 26, 2008

Is there any Way

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Is there any Way

campainer
Hi guys,
I was just wondering if any one knew how to chage the colour of text in an input box?
Any advise would help.

Laterz
Matty

Reply

ill
you can do this by linking the entire page you're trying to change the input field text in to an external .css file. (cascading style sheets)

to do this just insert the following code in the head part of the document:
CODE
<link rel="stylesheet" href="res/style.css" type="text/css">


then you have to make the css file, open up notepad and paste the following code in, save it as style.css
CODE
BODY {
    background-color: #333333;
    font-family: tahoma;
    font-size: 10px;
    color: #FFFFFF;
    scrollbar-3dlight-color: #111111;
    scrollbar-arrow-color: #555555;
    scrollbar-base-color: #333333;
    scrollbar-darkshadow-color: #333333;
    scrollbar-face-color: #222222;
    scrollbar-highlight-color: #333333;
    scrollbar-track-color: #333333;
    scrollbar-shadow-color: #333333;
}
a {color: #00ff00; text-decoration: none; cursor: crosshair}
a:active {text-decoration: none; color:#00ff00;}
a:link {text-decoration: none; color:#00ff00;}
a:visited {text-decoration: none; color:#009900;}
a:hover {text-decoration: none; color:#000000;}
table { font-family: tahoma; font-size: 10px; color: #00ff00; }

td, th {
    FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: tahoma; CELLPADDING: 0; CELLSPACING: 0;}

INPUT, TEXTAREA, OPTION, SELECT {
    BORDER: #ffffff 1px solid; FONT-SIZE: 10px; BACKGROUND: bgcolor="#333333"; COLOR: #ffffff; FONT-FAMILY: tahoma;}


i use the above style for my website found at Chaocid.tk. to change the color of the input field text just find the part where it says input (near the end) then change the "color" part after it to whatever color you'd like the font to be.. i think that'll do the trick. smile.gif

 

 

 


Reply

campainer
Thanks Ive been trying to figure that out for a while.

Reply

Gamesquare
Or you could do this (stealing ill's css code because I'm lazy and I'm bad with CSS):

CODE
<input type="text" name="something" value="something" style="BORDER: #ffffff 1px solid; FONT-SIZE: 10px; BACKGROUND: bgcolor="#333333"; COLOR: #ffffff; FONT-FAMILY: tahoma;">

Reply

ill
no problem campainer. smile.gif

but if you don't want to change the whole style of the page, you'll need to use Gamesquare's way, because the css code i put-up alters link colors and the scrollbar colors instead of just the input fields.

~gives Gamesquare a thumbs up

Reply

campainer
Thanks to you to Gamesquare smile.gif

Laterz
Matty

Reply

campainer
Thanks to you to Gamesquare smile.gif

Laterz
Matty

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics
Looking for Is, there, any, Way

Searching Video's for Is, there, any, Way
advertisement



Is there any Way



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE