CSS Library: Links & Buttons: Here
CSS Oval buttons
Author: Dynamic Drive
These buttons use the sliding doors technique of CSS, plus two sliced background images with "on" and "off" states, to create flexible oval shaped CSS buttons, similar to CSS Square Buttons. Each button can accommodate text of variable widths and supports a hover effect when the mouse rolls over it. The only limitation is the height of the button, which is fixed based on the background image's height.
For your convenience, we've created 5 different colored ovals buttons to get you on your way!
Demo:
The images used: Choose the desired set to download (2 images total):
Gray oval (2 images):
Blue oval (2 images):
Green oval (2 images):
Red oval (2 images):
Orange oval (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 1 of 5 pages 1 2 3 > Last »
Do you know a way of making dynamic graphical input buttons?
I've always used a different approach with this... There's this HTML element people tend to forget about: BUTTON. You can always do something like this:
<button><span><span>Label</span></span></button>
It's true you have to add two extra tags, but this is the only way to achieve this. I tried to add only one <span>, but the results were not as expected. This method degrades nicely for Safari too, as it looks like a normal button (as far as I remember). It's sort of "sliding doors" for buttons.
The downside (another one) is that you don't have hover support in MSIE6. However, you do have basic form support, so you don't have to use JavaScript to submit the form.
I have experimented with the <button>Content here</button> method and have found that there is a problem with IE 4+ that adds extra padding on the button tag and this cannot be removed. I have tried everything I can think of to remove the padding and have only succeeded in making the button look very hacked.
I worked on on my example and added <button> support. Now you can add round corners to <button> and (@Jay) easily center them in any container:
http://www.jorkas.com/lab/css/rounded_button/index.html
The above helped me but i was looking for the sidebar header to be in oval or other shapes..
can you tell me how to do so..
Thanks


http://www.jorkas.com/lab/css/rounded_button/index.html