Forum Moderators: not2easy
The moment I assign a CSS class to the button - the beautiful rounded corners disappear and instead I receive very sharp (right-angle) corners.
I searched various references in an attempt to find the property or style that can give me back the rounded corners - to no avail.
I found for the border-style property:
* none
* dashed
* dotted
* double
* groove
* inset
* outset
* ridge
* solid
and width, inset/outset, padding, margins, etc. -- but I couldn't find anything that dictates whether the corner of a button could be round.
What am I missing?
Is it possible at all to create button with round corners, using CSS only?
Using CSS3, yes, and the border-radius property.
Otherwise you can always use images ...
Thanks.
Your options are:
1. Sprite Navigation
2. Background positioning of the corners
3. Flash and other such tools
I would suggestion background positioning because the text can then be fluid and the box will stretch to any widths required.
Stu Nicholls CSSplay website is well worth googling.
I use them anyway if square corners arent too detrimental to the layout overall. For something small such as a button, i'd say this isnt gonna make much difference to the success of your website, so use rounded CSS.