Webmasters Heaven, Free submission, Free Promotion, Free Tools
Backword Forward Home add this page to favoirates send this page to a friend print this page icons articles Webmaster Tools Web Site Submit
sitemap
Free Icons Free Articels Free Tools Website submission

Articles Category  ]

Google
 
Advertising
Affiliates
Blogs
CGI
CSS
DHTML
Domain Names
ECommerce
Email
HTML
Internet
Javascript
Link Popularity
Marketing
MLM
Newsletters
Promotion
RSS
Search Engines
Site Security
Traffic Analysis
Web Hosting
Web Design
Webmasters


articles -> css
Article Title Author
Tables vs CSS - Which is better? Mike
CSS; Weight loss for your code Sasch Mayer
HasLayout concept explained - Learn how to exploit IE's layout" Lighezan Alexandru
How to make backgrounds for myspace? Brett Hull
Creating Pretty Buttons Scott Alexander
Fluidity and Text Sizing Nicole Hernandez
What is CSS? Devendra Jaiswal
Your New Website is Inside Drew Stauffer
Equal Heights Three Column Layout With CSS Rizky
CSS Design for change Dean Cruddace
How To Style Your Text With CSS  Hilco van der Meer
Cascading Stylesheets Advantages: 5 Reasons To Use CSS Hilco van der Meer
Creating Tableless Sites - Why and Some Basics Nicole Hernandez
CSS Cursors - How To Use Them Nicole Hernandez
How to create a Myspace layout? Anthony Stillmann
CSS Link Specificity Nicole Hernandez
The Concept Behind CSS Jose Valdez
The 30 minute CSS tutorial. Shabda Raaj
CSS or Tables? Shabda Raaj
Using CSS with Tables Stephen Cope
Cross Browser Compatibility Warren Baker
The Power of CSS Cliff Ritter
Cascading Stylesheets: 5 Reasons To Use CSS Hilco van der Meer
CSS Browser Detection - The complete guide Afonso Ferreira Gomes
CSS in Flash the return of crisp and legible fonts David Collado
Font Organizers Review, Part I David D. Deprice
7 Reasons Why Using CSS is a Must Michael Turner
SEO Benefits Of CSS Steve Chittenden
Starting Cascading Style Sheets stephen cope
Teach yourself CSS the easy way Erich Bihlman
CSS Print Media Tutorial Karl Regis
Using CCS to Eliminate Tables Sanjay Johari
CSS - Maximum benefits Zoran Makrevski
CSS: The Basics - ID's and Classes ... Correct Eric McArdle
CSS: The Basics - ID's and Classes Eric McArdle
Introduction To Cascading Style Sheets Mitchell Harper

Creating Pretty Buttons   by Scott Alexander


In the past, when you no longer wanted to look at the boring gray buttons for submitting your forms, your option was the input type image.

This typically looked something like <input type="image" src="button.gif">

The problem with this solution is that you had to make a different buttons for every different word you wanted on the button such as "go", "save", "submit", or "search"

The other problem was that with an input type image, you could not use the enter button on your key board to submit the form. Then you needed to also add in things like get key strokes. Really this was a mess.

Now in the world of CSS, life is much better.

There are lots of tutorials to teach you about creating CSS buttons using divs, anchors, borders and backgrounds. The problem is here too, is these are basically pretty links, so that you can still not use the enter key on your keyboard to submit your forms.

For starters, you can us a normal button like <input type="submit" name="submit" class="submit">

Now you can use CSS to change your button.

<style> input.submit { background: #E0691A url(submit.gif) no-repeat; border: 0; padding: 4px 0; width: 65px; margin: 0 15px 1px 0; color: #FFF; font: bold 1em Arial, Sans-Serif; } </style>

Now this is just an example of a CSS button, but most common CSS tags will work when applied to submit buttons.


About the Author

Scott Alexander is the lead programmer for CoreLevel Inc., a company the specializes in real estate web site designs


[Advertisement ]