Articles Tutorials Work at Home Entrepreneurs, Webmasters, Small Business Owners
Articles Tutorials Work at Home Entrepreneurs, Webmasters, Small Business Owners
Articles & Tutorials for Work at Home Entrepreneurs
Webmasters and Small Business Owners
Get More >

Newest Articles 
Search Engine Marketing
Internet Marketing
Affiliate Marketing
Email Marketing
Viral Marketing
Webmaster Resources
Business Resources
Make More Money
CSS
Web Design
Graphic Design
Color Theory
Product Reviews
Time Management
Business Ethics
Promotional Strategies
Glossary of Terms
Direct Mail Marketing
Telemarketing
Product Sourcing



Link to Us!

CSS
Email this article  :  Printer friendly page

Colorize Your Web Page Forms using CSS


Click Here to View Live Example
Using CSS (cascading style sheets) it is quick and easy to colorize these web page form properties: background color, typed text within the form fields and form submit buttons. The most effective way to do this is to create a custom class within an external style sheet. This article will teach you how to colorize your forms using the external style sheet method.

If you are not sure why you would want to use web page forms at all, read our article, "HTML Forms: Is Your Site Interactive?" to get ideas on how utilizing web forms can help automate, grow, and increase your web site sales and targeted visitors.

Let's begin by giving you a code snippet to add to your external style sheet. Simply copy/paste it into your external style sheet. If you are a BasicTemplates.com member, you currently have 600+ external style sheets to choose from (along with the same quantity of predesigned web site templates):

.form { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: red; background: yellow; color: blue; }
.btn { font-weight: bold; color: yellow; background-color: blue;}

Then assign the custom class to the appropriate HTML form tags. Above we assigned the class "form" to the "textarea" tag:
<textarea name="textfield" cols="45" rows="6" class="form">Go ahead and type text into this field. You will see that it will take on a blue color as stated in the CSS code shown above.</textarea>

Then we assigned the "btn" class to the HTML input tag:
<input type="submit" name="Submit" value="Submit" class="btn">

Want colored scrollbars in your form too? Read our previous article, "Jazz Up Your Site with Colored Scrollbars". Simply add the scrollbar snippet to the end of the "form" class shown above!

Be sure to click on the "View Live Example" icon above to see this CSS effect live in action.

Copyright © 1994-2006 by BasicTips.com, a division of BasicTemplates.com, CSS HTML Web Site Templates with Exernal CSS and Removable Graphics. If you found our articles helpful, subscribe to our newsletter and get articles like this delivered to your inbox - FREE.

Order soon and get up to 5 FREE domains & more!
Host 6 Domains on 1 Account
5000MB and 400GB for $6.95 a month!

 

Page copy protected against web site content infringement by Copyscape
All articles are originally authored by BasicTemplates.com. Reprints in whole or in part are not permitted. See Copyright Notice

Copyright © 1994-2006 BasicTips.com, a division of BasicTemplates.com, Web Site Templates with External CSS
The Internet's #1 Choice for HTML CSS Web Templates via a Membership. Designed using External CSS and Removable, Swap-Out Graphics.
Basic Web Templates | Website Templates | HTML CSS Templates | Web Design Templates | Web Site Templates