Topic: Border-radius
W3C has offered some new options for borders in CSS3, of which one is border-radius. Both Mozila/Firefox and Safari 3 have implemented this function, which allows you to create round corners on box-items:
You are not logged in. Please login or register.
W3C has offered some new options for borders in CSS3, of which one is border-radius. Both Mozila/Firefox and Safari 3 have implemented this function, which allows you to create round corners on box-items:
Before border-radius becomes commonplace you'll need to specify mozilla & webkit specific values.
"webkit" is Safari & Chrome, and "moz" is Firefox. Other browsers will just ignore border-radius, while still honoring your border.
For example:
.foo {
border: 1px solid #000;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
}Speaking of borders, I totally just realized that you can set a border to be "transparent", I had no idea!
.foo {border: 1px solid transparent;}A-mazing! Stevenson you just helped me out big time.
Powered by PunBB 1.3.4, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.