What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

I am currently working on a Drupal 6 theme, for which designer is *explicitly* requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways of creating rounded corners. Optimally, I would like to write my CSS as standards-compliant CSS3, with selectors like: > h2 {border-radius: 8px;} Use of browser-specific is CSS is very OK also, like > h2 {-moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px;} If required, I can also insert some custom JavaScript by hand. I just want to avoid adding yet another 100 rounded corner images to my markup. Any suggestions on the best approach?
Hey, I'm struggling with the exact same problem. Using images is what I've been doing so far, but it's a lot of work and I'd also be happy to find an easier solution...

以上就是What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏