How to Make Rounded Corners in Pure CSS
To make your HTML element rounded, use the following CSS statement:
border-radius: 4px 4px 4px 4px;
Specify radius in pixels. You can specify different radius for every four corners. This trick works in IE9 onwards and other modern browsers including Firefox 3.6 and higher.
Listed in
Can I use single parameter for all corners like in regular CSS statements also?
Will it work for iPod / iPhone (Safari) and Android? Android uses Firefox mainly so I assume yes, but better safe than sorry... Please respond.
It really is that easy? OMG!
Will it work for all browsers?
It will only work for IE9 and newer, but Firefox has been supporting this for a pretty long time now so that I assume it will work with almost every version of Firefox and Chrome.
Absolutely great tip on CSS. I didn't know it was that easy to make rounded corners. Thanks so much!