Click to See Complete Forum and Search --> : Broders with CSS with rounded corners


denise1
07-11-2005, 04:02 PM
Hi Everyone,

I am trying to make a outset border with CSS. I would like the white space to have rounded corners. Hope this make sense. I know how to create broders with tables but not sure how with CSS and rounded corner. Any Advise?

Thanks
This is what I have for a table don't know hot to change to get rounded corner and use CSS. :p :(
<table cellpadding=0 cellspacing=0 border=0 width=748 height=543 style="border:3px solid #FFFFFF" bgcolor="#FFFFFF">

drhowarddrfine
07-11-2005, 04:07 PM
Do a search. This is discussed many places.

jalarie
07-13-2005, 12:26 PM
Check out the "Samples of my work > Round Corners Generator" at:

http://spruce.flint.umich.edu/~jalarie/

Bootsman123
07-13-2005, 02:13 PM
http://www.google.com/search?num=30&hl=en&lr=&safe=off&q=css+rounded+corners&btnG=Search

jamesx521
07-13-2005, 02:55 PM
Rounded borders with CSS still require using a GIF or JPG small image: that's why I gave up using them.

http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-border-radius

http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow

http://www.alistapart.com/articles/customcorners/

http://www.vertexwerks.com/tests/sidebox/

http://www.albin.net/CSS/roundedCorners/#note1

Bootsman123
07-13-2005, 03:56 PM
The nice thing is that you don't need images:
http://pro.html.it/esempio/nifty/
http://www.fireandknowledge.org/archives/2004/05/22/rounded-corners-without-images-part-1/

jamesx521
07-13-2005, 04:51 PM
That's interesting. I haven't tried the code yet, but do you know if it works on both browsers and if you can use a border around the rounded corners?
Thanks.

Bootsman123
07-14-2005, 12:14 AM
Of http://pro.html.it/esempio/nifty/:

The support should be extended to all modern browsers: the technique has been tested with success in Internet Explorer 6, Opera 7.6, FireFox 1.0, Safari 1.1 Mac IE. It fails on IE 5.x PC.

WoD
07-14-2005, 09:24 AM
http://wodeh.mine.nu/roundedCorners.html

I modified the technique slightly, replacing margins with borders so the function call requires only one colour. I also "tucked" the rounded strips in so they do not change the size of the divs you round. My modifications allow some of the examples to be done in one function call rather than a separate one for top and bottom.

My modifications come at the loss of transparency on the corners, but can still be useful- I believe.

Code available here: http://wodeh.mine.nu

jamesx521
07-14-2005, 09:38 AM
I was looking at your example on IE, but I don't see a border around the oval frame.

WoD
07-15-2005, 04:08 AM
You miss my point- instead of using margins to generate the effect I used borders. I didn't mean I actually put borders around the rounded corners, although I did try to it's generally not possible .. or at least not desirable without anti-aliasing.

denise1
07-20-2005, 01:07 PM
Thanks guys for the help! I will try your suggestions now. Thanks again

obsesik
07-22-2005, 05:42 PM
That's pretty nifty Bootsman...Almost figured out that one by myself then Tah-DAH! you splurt it out for me :)