0

Possible Duplicates:
css/ html help in making rounded table like container
What is the best way to create rounded corners using CSS?

how to make a rectangle/square with curved edges in html?

Community
  • 1
  • 1
sly_Chandan
  • 3,437
  • 12
  • 54
  • 83
  • 1
    Curved edges? Perhaps you mean rounded corners? http://stackoverflow.com/questions/7089/what-is-the-best-way-to-create-rounded-corners-using-css – Guffa Nov 13 '10 at 15:09

4 Answers4

1

use CSS border radius: http://border-radius.com/

Gani Simsek
  • 342
  • 4
  • 11
0

You could use the CSS 3 property border-radius.

Vendor implementations:

  • Gecko: -moz-border-radius
  • WebKit: -webkit-border-radius

Please note:

  • HTML is used for specifying content of the document.
  • CSS is used for presentation of the document.
Alan Haggai Alavi
  • 72,802
  • 19
  • 102
  • 127
  • It's maybe worth specifying the various vendor-prefixed options, too. I'm not sure if they're still required, though... =/ – David Thomas Nov 13 '10 at 15:10
0

You need to draw the rectangle/square on a canvas, then manually round the corners. This method only works for HTML5-compatible browsers (not IE8).

http://thinkvitamin.com/code/how-to-draw-with-html-5-canvas/

Evan Mulawski
  • 54,662
  • 15
  • 117
  • 144
0

Curved Lines in HTML5 canvas http://fjd1.com/canvas002.html

Lamp
  • 1,084
  • 1
  • 14
  • 27