Css3 rounded corners not working in Chrome?

This is a discussion on Css3 rounded corners not working in Chrome? within the Browser Issues forums, part of the Web Design category; Css3 rounded corners not working in Chrome? This works in Firefox, but not Chrome... btw... I know it doesn't work ...


Reply
 
LinkBack Thread Tools Display Modes
Old 21st June 2010, 05:55 AM   #1
Whacked
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cena2020 is on a distinguished road
Expertise: Total Beginner
Experience: Basic / None
Default Css3 rounded corners not working in Chrome?

Css3 rounded corners not working in Chrome?

This works in Firefox, but not Chrome... btw... I know it doesn't work in ie... ie sucks

-moz-border-radius: 0.5em 0;
-moz-box-shadow: 1px 1px 4px #111;

any suggestions on how to get it to work in chrome?
cena2020 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 21st June 2010, 08:56 AM   #2
Member
 
Join Date: Jul 2009
Posts: 211
Thanks: 0
Thanked 19 Times in 18 Posts
Mike Hopley will become famous soon enough
Expertise: (X)HTML / CSS
Experience: Quite Good
Default

You're using the Mozilla-specific prefix -moz (Firefox is a Mozilla browser).

To make it work in Chrome (and Safari), you need to add the webkit-specific equivalent (-webkit...). Here's a tutorial.
Mike Hopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 21st June 2010, 12:14 PM   #3
cew
Member
 
cew's Avatar
 
Join Date: Apr 2010
Location: South Africa
Posts: 49
Thanks: 0
Thanked 3 Times in 3 Posts
cew is on a distinguished road
Expertise: (X)HTML / CSS
Experience: Intermediate
Default

Hi this covers, safari and chrome (web-kit), firefox and other mozilla browsers as well as opera:
Code:
 -moz-border-radius: 5px;
 -webkit-border-radius: 5px;
border-radius: 5px;
Code:
 -moz-box-shadow: 1px 1px 5px #2D2B35;
 -webkit-box-shadow: 1px 1px 5px #2D2B35;
box-shadow: 1px 1px 5px #2D2B35;
 

Last edited by cew; 21st June 2010 at 12:16 PM..
cew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Old 16th July 2010, 11:30 AM   #4
Tom
trusted
 
Tom's Avatar
 
Join Date: Jan 2009
Posts: 782
Blog Entries: 16
Thanks: 17
Thanked 35 Times in 35 Posts
Tom will become famous soon enoughTom will become famous soon enough
Expertise: Design & Graphics
Experience: Quite Good
Default

Cheers Cew.

I was searching google for the code as I always forget it and this page comes up on the first page for "css3 rounded corners" :)
Tom is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!twitter
Reply With Quote
Reply

Tags
chrome, corners, css3, rounded, working

Thread Tools
Display Modes