Posted: Sat Oct 20, 2007 4:43 pm Post subject: Customizing Any Text Area
This tutorial will show how to change the color of an input box or textarea when they are active. This is very simple and is done using CSS. So here we go!
The first part is the CSS code, this goes in the between the head tags of your page:
The highlighed text above is the stuff you have to copy. The red bits are the parts you have to customize to suit your needs.
The first class, ".input" is the code which sets the colours of the text box when it doesn't have focus(i.e. when they are not active). The second class, ".input:focus" sets the colours of the text boxes when they are active. Simple really.
Now for the html code:
Instead of using the features on Dreamweaver, or Frontpage, or anything that you use to make an input box, just copy this code wherever you want your tailor-made box.
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