Instead, I suggest you use CSS3, which, unlike other methods, does not require extraneous HTML or Javascript markup, which, as you know, causes any rounded element to “blink” when the page loads.
-webkit-border-radius: 10px; -moz-border-radius: 10px; -o-border-radius: 10px; -ms-border-radius: 10px; -khtml-border-radius: 10px; border-radius: 10px;
This generator is also useful: http://borderradius.com/ , and there is another http://css3generator.com
In the latest versions of most (if not all) browsers border-radius: 10px;
It works just fine, and on time, specific browser ads will be outdated.
To make the border radius in IE6, 7 and 8, try ms-border-radius js library , although I have not tested it (and someone replied that it does not work). My personal opinion is that if someone still uses these browsers, the Internet should look like a strange and scary place for them every day, they will not miss their rounded corners.
In addition: the method you are trying to use is more applicable when CSS3 is not widely supported. It was created during a strange period in the Internet when the popularity of IE6 prompted countless web developers to find very non-semantic creative solutions to other simple problems. So thanks to Internet Explorer for taking several years of our lives and slowing down web design and development.
Sandwich
source share