CSS3 Rounded Corners On IE

One of the coolest new additions to the CSS3 specification is its built-in ability to render rounded corners. Before CSS3 the only semi-humane way to create rounded corners on an element was to create four rounded corner images and use some unwieldy al…


This content originally appeared on Harry Wolff and was authored by Harry Wolff

One of the coolest new additions to the CSS3 specification is its built-in ability to render rounded corners. Before CSS3 the only semi-humane way to create rounded corners on an element was to create four rounded corner images and use some unwieldy albeit effective <code>display:absolute</code> positioning to get the desired effect. This resulted in bloated code that contained numerous extra <code><div></code> tags such as: <code><div class="topLeftCorner"></div></code> to create the effect, and ultimately bogged down the rendering of the page.

This onerous task has been thankfully and mercifully banished to the days of yore thanks to CSS3's <code>border-radius</code>. To create a rounded-border with CSS3 it is as simple as typing:

<code> .rounder_corners { -moz-border-radius: 12px; -webkit-border-radius: 12px; border-radius: 12px; } </code>

Now this is all well and good however the bane of every accomplished web developer is cross-platform compatibility - namely Internet Explorer. Unfortunately for all who code for the web most of the world still uses IE7 and IE8 as their web browser of choice. What's so horrible about this? IE6-8 does not suport CSS3's <code>border-radius</code> property, thus insuring that any IE6-8 user will not see your beautifully rounded corners. I'm choking up just thinking about the ugly pain. :(

So what's a web developer to do? Today I stumbled across (through <a href="http://html5boilerplate.com">html5boilerplate.com</a>) the most excellent and amazing <a href="http://css3pie.com/">CSS3 PIE</a> resource. PIE stands for Progressive Internet Explorer and the long and short of its awesomeness is that when it is included on your web page it equips every user running IE6-8 with the ability to render and display all the glorious benefits of CSS3 - including its <code>border-radius</code> property! Ugliness undone!


This content originally appeared on Harry Wolff and was authored by Harry Wolff


Print Share Comment Cite Upload Translate Updates
APA

Harry Wolff | Sciencx (2011-03-10T12:53:44+00:00) CSS3 Rounded Corners On IE. Retrieved from https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/

MLA
" » CSS3 Rounded Corners On IE." Harry Wolff | Sciencx - Thursday March 10, 2011, https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/
HARVARD
Harry Wolff | Sciencx Thursday March 10, 2011 » CSS3 Rounded Corners On IE., viewed ,<https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/>
VANCOUVER
Harry Wolff | Sciencx - » CSS3 Rounded Corners On IE. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/
CHICAGO
" » CSS3 Rounded Corners On IE." Harry Wolff | Sciencx - Accessed . https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/
IEEE
" » CSS3 Rounded Corners On IE." Harry Wolff | Sciencx [Online]. Available: https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/. [Accessed: ]
rf:citation
» CSS3 Rounded Corners On IE | Harry Wolff | Sciencx | https://www.scien.cx/2011/03/10/css3-rounded-corners-on-ie/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.