CSS Library: Links & Buttons: Here
Bold CSS Buttons
Author: Dynamic Drive
These big, bold CSS buttons are constructed using a rounded edge button image sliced into two pieces, then put back together using CSS. The button text style reacts on the "hover" state.
Demo:
Single button:
Side by Side:
The images used: Choose the desired set to download (2 images total):
Gray oval (2 images):
Blue oval (2 images):
Green button (2 images):
Red button (2 images):
Metallic brown button (2 images):
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 4 of 7 pages « First < 2 3 4 5 6 > Last »
I had to put the link in a table in order to center it. It does look good, but I don't understand why <center> will not work!! It flashes left unless i put it in the table....mystery!
lovely codes and design thank you so much
Hi iam new to css Actually iwant a button or tag with rounded corners when i moved my mouse over that tab.can any help me in this regard
Thanks in advance
Lokesh.p
Thanks in advance
Lokesh.p
How do I put these buttons in my web page? I am a student and we are learning about CSS. I've tried this several times it hasn't appeared right yet. Can I duplicate them to make five buttons across the top? How?
grey oval red button
to center it put a tag around it
<div align="center"> ... </div>
Wrong item. lol. can someone delete these please
I think your CSS won't work well for IE
Given the HTML in IE on HOVER the hover font, line height and padding won't be what is desired.
I believe you need something like this :
Given the HTML in IE on HOVER the hover font, line height and padding won't be what is desired.
I believe you need something like this :
a:hover.boldbuttons span{
font: bold 13px Arial; /* Change 13px as desired */
text-decoration: underline;
background: transparent url('images/roundedge-gray-right.gif') no-repeat top right;
display: block;
line-height: 22px; /* This value + 4px + 4px (top and bottom padding of SPAN) must equal height of button background (default is 30px) */
padding: 4px 10px 4px 2px; /*Set 10px to be equal or greater than'padding-left' value above*/
}
Also we might want to consider the a.visited for IE:
Commenting is not available in this weblog entry.
a:visited.boldbuttons{
font: bold 13px Arial; /* Change 13px as desired */
line-height: 22px; /* This value + 4px + 4px (top and bottom padding of SPAN) must equal height of button background (default is 30px) */
padding-left: 8px; /* Width of left menu image */
}


You simply need to use this code:
<input type="image" src="(the url of the button image)" name="submit" >
and of course, replace the stuff in brackets with the real URL of your image.
It's very simple.