Home
Developer Blog
Ajax effects
CSS examples
Freelance jobs
Hot IT Jobs
Hot scripts
Code samples
Web hosting directory
Lotus Notes FAQ
See the new scripts recently added to Dynamic Drive.
Click here
.
Original, practical
CSS codes and examples
such as CSS menus for your site.
Search code samples
Keyword
All Categories
ASP
CSS
Dhtml
Html
Javascript
PHP
Code Samples
ASP
CSS
Dhtml
Html
Javascript
PHP
LOGIN HERE
Username
Password
Signup Now
Forgot Password
Verify Signup
CSS
How can i create CSS Buttons?
Visitor Ratings (1) :
Description
You can define all the properties.. Try the following code.
Code
Select All
<html> <head> <style type="text/css"> a:link, a:visited { float: left; margin: 2px 5px 2px 5px; padding: 2px; width: 100px; border-top: 1px solid #cccccc; border-bottom: 1px solid black; border-left: 1px solid #cccccc; border-right: 1px solid black; background: #cccccc; text-align: center; text-decoration: none; font: normal 10px Verdana; color: black; } a:hover { background: #eeeeee; } a:active { border-bottom: 1px solid #eeeeee; border-top: 1px solid black; border-right: 1px solid #eeeeee; border-left: 1px solid black; } </style> </head> <body> <a href="#">Button 1</a><a href="#">Button 2</a><a href="#">Button 3</a> </body> </html>
Rate this Resource
0
1
2
3
4
5
6
7
8
9
10