Jump to content

Rounded corners not working in Firefox


elliotnewman

Recommended Posts

http://www.elliotnewman.com/index/test8.htmlI have picked up some code that seems to round off corners to my div tags nicely - I use:
#box_left {	-webkit-border-radius: 6px;	-moz-border-radius: 6px;	border-radius: 6px;

It seems to work ok in Safari, for example the divs "box_left" and "box_right" both have this.Is there something really obviously wrong with my code?Thanks, Elliot.

Link to comment
Share on other sites

Well, property names that start with - are browser-specific, that is, they only works in a certain rendering agent (e.g. -webkit only works in webkit), and are thus not part of any official standard and are invalid. However, they still work.So, your code does work, but only in Webkit browsers, Gecko browsers, and such browsers that support the CSS3 border-radius. And it's invalid.

Link to comment
Share on other sites

I believe only the newest version supports only a handful of HTML 5 tags, so even though your rounded borders might work in FireFox, they won't work in Internet Explorer, Opera, or K-Meleon.
Rounded corners are a CSS3 spec, not HTML 5 :)
Link to comment
Share on other sites

I checked it out in FF 3.5.10 and it appears to work correctly.It's a little difficult to see it though. With the bottom gradient, it doesn't appear at all. I took your code into an editor and added {margin-top: 20px;} and the radius really became a lot more apparent. With it sitting so close to the #image, just a little difficult to see it (in my opinion at least).As for your current code though, it seems to work fine for me. Hope this helps!

Link to comment
Share on other sites

yes thanks for the link. I am using firefox 2.0 .... that must be why ;0 I just assumed it would have been supported for sometime in CSS so was not concerned about the age of my version of FF, I was wrong.MitzeMitchell - thanks, yes I kind of want it to be subtle, I don't want to overdo it, plus giving other browsers do not support it I don't want the design feeling too different with the rounded corners, but perhaps another pixel or two would help.Thanks all! good stuff.

Link to comment
Share on other sites

yes thanks for the link. I am using firefox 2.0 .... that must be why ;0
Yup, best to keep your browser updated as best as you can. Firefox is currently on version 3.6 at the time of this post.:)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...