ben03 Posted April 20, 2009 Share Posted April 20, 2009 I have been working on a form which has a white background. Unfortunately this means the text fields to be filled in are invisible! Its probably fairly simple but I was wondering what code I required to add a border to the text areas? Thanks Link to comment Share on other sites More sharing options...
jeffman Posted April 20, 2009 Share Posted April 20, 2009 textarea { border: solid 1px #000;} For example. Link to comment Share on other sites More sharing options...
real_illusions Posted April 21, 2009 Share Posted April 21, 2009 You can change the background too. input, textarea {background: #876952;} No idea what that colour is, just randomly pressed a bunch of numbers Link to comment Share on other sites More sharing options...
ben03 Posted April 21, 2009 Author Share Posted April 21, 2009 Thanks for the help!That has solved it for the textarea. What do I need for simple textfields? (the only code in the html page is input type="text" and already has a name specified) Link to comment Share on other sites More sharing options...
real_illusions Posted April 21, 2009 Share Posted April 21, 2009 What do I need for simple textfields? textarea, input { border: solid 1px #000;} Add the input after the textarea in the CSS, that will target all input fields, unless they have been given a class and have styles added to them later on in the style sheet. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.