Shaikh Sonny Aman’s Blog

previously www.mailtoaman.com

Firefox round corner css only, no gif

Posted on | March 27, 2008 |

Every border has its own set of native functions support some cool features to the developers. Like IE has gradient feature built in!

One nice feature of Firefox is to support rounded corner without any extra hassle. With no gif at all!

here is how:

-moz-border-radius:20px

Lazy enough? Just copy the code and see yourself!

<div style=’-moz-border-radius:20px;background-color:#ff0000′>

Hello rounded Firefox world !

</div>

See the effect here:

Hello rounded Firefox world !

Comments

5 Responses to “Firefox round corner css only, no gif”

  1. Manchumahara
    March 28th, 2008 @ 9:26 pm

    Thanku…I like this type of small tips.

    Is there any way to make such rounded border corner in ie6 or ie 7

    BTW: I hate IE…

  2. Shaikh Sonny Aman
    March 28th, 2008 @ 10:08 pm

    i searched a lot, but did not get :(
    if you come to know, plz let me know too :)

  3. Manchumahara
    March 29th, 2008 @ 11:37 am

    ok..may be it’s not possible in ie6. ie8 may be a good one like firefox for design issues

  4. nhm tanveer hossain khan (hasan)
    April 2nd, 2008 @ 4:08 am

    nice finding,
    here is an article from a list apart -
    http://www.alistapart.com/articles/customcorners/

    best wishes,

  5. Shaikh Sonny Aman
    April 21st, 2008 @ 8:27 pm

    @hasan,
    thanks for the link, alistapart is really a nice and helpful site.

Leave a Reply