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

Create 3D Buttons with CSS

Designing a professionally styled web site does not always mean you need fancy graphics. In fact, if you take a close look at most of the high-profile corporate web sites that set the web design industry trends, you will find minimal graphics and the use of CSS rather than graphical buttons. So how do these types of sites utilize a 3D button-type link using CSS? We will show you one method in this CSS article.

Using a custom class in an example below, notice the border color. Do you see the color code sequence of white (#FFFFFF) and medium gray (#666666)?

.bt3dbuttons {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
border-color: #FFFFFF #666666 #666666 #FFFFFF;
background-color: #CCCC99; border-style: solid;
border-top-width: 1px; border-right-width: 1px;
border-bottom-width: 1px; border-left-width: 1px;
}

The border is 1 pixel solid and the order of the border color is "top-right-bottom-left". This means that the top and left border color is white and the bottom and right sides of the border are dark gray giving the effect of a convex (coming toward you) effect for a textual button. This is more effective when the text link is on a colored background than if it were only on a white background.

Changing the border size, color and location ("top-right-bottom-left") will also change the appearance of your button including giving it a concave appearance instead of a convex. Use this color order to switch your button to a concave (inward) effect: #666666 #FFFFFF #FFFFFF #666666

To make the hyperlink change color, add a hover style as described in our article, "Link Rollovers with CSS". The example code below uses a:hover with no underline (reference our CSS article, "Removing Link Underlines with CSS") in a dark red color (#990000).

a:hover { color: #990000; text-decoration:none; }

Convex 3D CSS Button
Concave 3D CSS Button

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