campainer 0 Report post Posted August 9, 2004 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.LaterzMatty Share this post Link to post Share on other sites
ill 0 Report post Posted August 11, 2004 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: <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.cssBODY {[br] background-color: #333333;[/br] font-family: tahoma;[br] font-size: 10px;[/br] color: #FFFFFF;[br] scrollbar-3dlight-color: #111111;[/br] scrollbar-arrow-color: #555555;[br] scrollbar-base-color: #333333;[/br] scrollbar-darkshadow-color: #333333;[br] scrollbar-face-color: #222222;[/br] scrollbar-highlight-color: #333333;[br] scrollbar-track-color: #333333; [/br] scrollbar-shadow-color: #333333;[br]}[/br]a {color: #00ff00; text-decoration: none; cursor: crosshair}[br]a:active {text-decoration: none; color:#00ff00;}[/br]a:link {text-decoration: none; color:#00ff00;}[br]a:visited {text-decoration: none; color:#009900;}[/br]a:hover {text-decoration: none; color:#000000;}[br]table { font-family: tahoma; font-size: 10px; color: #00ff00; }[br][/br]td, th {[/br] FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: tahoma; CELLPADDING: 0; CELLSPACING: 0;}[br][/br]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. Share this post Link to post Share on other sites
campainer 0 Report post Posted August 11, 2004 Thanks Ive been trying to figure that out for a while. Share this post Link to post Share on other sites
Gamesquare 0 Report post Posted August 11, 2004 Or you could do this (stealing ill's css code because I'm lazy and I'm bad with CSS): <input type="text" name="something" value="something" style="BORDER: #ffffff 1px solid; FONT-SIZE: 10px; BACKGROUND: bgcolor="#333333"; COLOR: #ffffff; FONT-FAMILY: tahoma;"> Share this post Link to post Share on other sites
ill 0 Report post Posted August 12, 2004 no problem campainer. 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 Share this post Link to post Share on other sites
campainer 0 Report post Posted August 12, 2004 Thanks to you to Gamesquare :PLaterzMatty Share this post Link to post Share on other sites
campainer 0 Report post Posted August 12, 2004 Thanks to you to Gamesquare :PLaterzMatty Share this post Link to post Share on other sites