Click to See Complete Forum and Search --> : Oval/rounded edges on Div?


jamesx521
03-09-2005, 10:30 AM
1. I thought I had seen this some place a while ago, but couldn't find it on the web. Can someone give me an example of a DIV that has rounded edges. The code should be able to control the roundness too. Also I would want to be able to put a 1pt. dashed border around it.

2. And, how about faking a shadow with CSS? (the code should be able to control the offset of the shadow too.

Thanks.

Nutter
03-09-2005, 10:44 AM
-moz-border-radius, but it doesn't work in IE.

NogDog
03-09-2005, 10:46 AM
These are proposed additions to CSS version 3, whenever that may get implemented:

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

Triumph
03-09-2005, 11:48 AM
http://www.alistapart.com/articles/customcorners/

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

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