Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Round Corners in Safari

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Hi,

If I have a <div> or a <fieldset> tag in Firefox, I can apply the following styles to make them have rounded corners:

-moz-border-radius: 8px;
-moz-box-sizing: border-box;

In IE I use VML to render rounded rectangles to replaces <divs> and the <fieldset> tag is already rounded if Windows Themes are enabled.

Is there something similar for Safari and Opera to produce rounded rectangles?

Thanks,
~R

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
In theory you should be able to just use the following:
Code:
border-radius: 8px;
But, of course, nobody supports this stylish CSS3 property just yet (Opera 9.5 is going to support it - due soon).

For Safari you can use the webkit namespace (instead of moz for Firefox). The following works to give you the same rounded corders in Safari (will also work on Konqueror):
Code:
-webkit-border-radius: 8px;
You can read about this property (and others) here:
Check out this link for a run down on the CSS3 [tt]border-radius[/tt] property in Opera and the fact it is to be supported in Opera 9.5:

Hope that sheds the light on some stuff!

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top