| | 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 |
|
|
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.
Thanks Ive been trying to figure that out for a while.
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;">
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 |
|
![]() 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 |
|