changing the look of an element

E

Eitan

Hello,

I want to create a ellipse element in javascript.
I want to know if there is a choise of css style to make an ellement look as
ellipse.
How can I do that ?

I need some sample codes, please.

Thanks :)
 
R

RobG

mscir said:
Eitan wrote:
Did you try google? I found this in < 1 min.

http://www.w3schools.com/svg/svg_ellipse.asp

I think the OP was looking for a CSS or similar method of creating an
element that has curved edges.

SVG is loaded as a totally separate object and can't be combined with
HTML objects, say to put curved corners on a rectangular DIV with a
border.

There is very little support for SVG in general, Adobe's viewer works
only in IE and Netscape 4. The Mozilla SVG Project has quite a way to
go, I wouldn't recommend them at all for general web users.

<URL:http://www.mozilla.org/projects/svg/>

If you want to draw graphics using JavaScript in a reasonably
browser-neutral fashion, try:

<URL:http://www.webreference.com/programming/javascript/gr/column2/>

However, this requires significant CPU resources but could possibly be
used to create rounded corners on a rectangular div. Run the "prop"
demo and watch your CPU usage rocket to 100%.

Again, a useful novelty but certainly not for use on your home page!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top