User:Immewnity/Border specifications
From Bulbapedia, the community-driven Pokémon encyclopedia.
| This article is a proposed policy for Bulbapedia.
Please discuss the proposed policy and suggest possible changes on the article's talk page. |
When coding a template, Bulbawiki standards have become to have rounded borders in most templates. The specification to do this is some form of border-radius, as noted in CSS3. At the moment, Gecko-based (i.e. Mozilla Firefox) and WebKit-based browsers (i.e. Apple Safari, Google Chrome) support this. Other browsers, such as Microsoft Internet Explorer and Opera, do not currently support this; however, there are workarounds. Reference sites for these specifications can be found below.
Contents |
Supported browsers
Gecko-based
Mozilla Firefox
- As of Mozilla Firefox 3.5, use
-moz-border-radius- For specific corners, use
-moz-border-radius-topleftand set it to your preferences.
- For specific corners, use
WebKit-based
Google Chrome
- As of Google Chrome 3, use
-webkit-border-radius(there is, however, a bug; using this in all current Google Chrome builds will not be anti-aliased)- For specific corners, use
-webkit-border-top-left-radiusand set it to your preferences.
- For specific corners, use
- As of the most recent builds of Google Chrome 4, use the CSS3 standard
border-radius- For specific corners, use
border-top-left-radiusand set it to your preferences.
- For specific corners, use
Apple Safari
- As of Apple Safari 4, use
-webkit-border-radius- For specific corners, use
-webkit-border-top-left-radiusand set it to your preferences.
- For specific corners, use
Other
Workarounds
Implementation soon
Opera
Opera, one of the first browsers to gain a perfect score in the Acid3 test, is still yet to gain a version of border-radius; however, this will soon be implemented. For the moment, a workaround using Opera's lone usage of background SVGs can be found here.
No implementation planned
Microsoft Internet Explorer
Even with IE8 released, Internet Explorer has yet to have any form of border-radius implemented. There are also no known plans to implement this anytime soon. A workaround is found here; this uses an IE specific JavaScript code to create rounded borders.
External links
- http://www.css3.info/preview/rounded-border/
- http://www.w3.org/TR/css3-background/#the-border-radius
- http://www.the-art-of-web.com/css/border-radius/
- https://developer.mozilla.org/en/CSS/-moz-border-radius
- http://www.isaackeyet.com/blog/2008/spices-for-modern-browsers-border-radius-box-shadow-and-text-shadow/
- http://verens.com/archives/2005/03/28/rounded-borders-for-ie-konqueror-opera-and-firefox/
- http://blog.nixternal.com/2009.06.19/css-border-radius/
- http://leaverou.me/2009/02/css3-border-radius-today/
- http://www.practicalecommerce.com/articles/922-Web-Design-Tips-Rounded-Borders-in-CSS

