tags:

views:

464

answers:

6

I was looking at how some site implemented rounded corners, and the CSS had these odd tags that I've never really seen before.

-moz-border-radius-topright: 5px;
-webkit-border-top-right-radius: 5px; 
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;

I googled it, and they seem to be Firefox specific tags?

Update

The site I was looking at was twitter, it's wierd how a site like that would alienate their IE users.

A: 

I suggest browsing the site from IE or some other browser. I bet you get different markup.

Joel Coehoorn
just did, and no they are square corners...strange!
public static
+8  A: 

The -moz-* properties are Gecko-only (Firefox, Mozilla, Camino), the -webkit-* properties are WebKit-only (Chrome, Safari, Epiphany). Vendor-specific prefixes are common for implementing CSS capabilities that have not yet been standardized by the W3C.


Twitter's not "alienating" their IE users. There's simply adding style for browsers that support it.

John Millikin
I guess it depends on how you look at it. IE is alienating its user base also.
public static
If a square corner alienates you, you're a hard user to please and no mistake ;-)
Steve Jessop
Isn't border-radius a standard css3 property? I thought W3C finished the css3 protocol.
Dennis
CSS3 is still a draft; it's not been standardized yet
John Millikin
+1  A: 

The -moz ones are firefox specific, the -webkit ones are for safari, chrome and a few other browsers that use that rendering engine.

These are early implementations of attributes that are defined in CSS3 so they will be coming in the future without the prefixes.

William
Relevant bit of the CSS3 spec: http://www.w3.org/TR/css3-background/#the-border-radius
insin
They are not "tags" or "attributes", they are CSS properties.
Jim
A: 

Those are for Firefox (the ones labeled -moz-border) and for Safari (-webkit-border).

Bill Turner
A: 

Yes, anything with a -moz in front of it will only work in Firefox.

The -webkit ones will only work in webkit-based browsers like Safari, Chrome or Webkit.

See here for many ways to make rounded corners with just normal css tags.

Edit: I don't think that not having rounded corners is exactly alienating, just a slightly different look for IE.

Complete lists of all -moz and -webkit css styles if anyone wants to know

p5ycho_p3nguin
A: 

Have you seen this? http://openrico.org/

Optimal Solutions