473,465 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

changing the look of an element

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 :)

Jul 23 '05 #1
4 931
Eitan wrote:
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 :)


Did you try google? I found this in < 1 min.

http://www.w3schools.com/svg/svg_ellipse.asp
Jul 23 '05 #2
mscir wrote:
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!

--
Rob
Jul 23 '05 #3
RobG wrote:
mscir wrote:
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.


Doh! My apologies to the OP'er.
Mike
Jul 23 '05 #4
On Fri, 26 Nov 2004 03:27:05 GMT, RobG <rg***@iinet.net.auau> wrote:

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


The easiest way to create a curved look is to use background images added
with CSS. I think it would be impossible to create an ellipse as it's a
continuous curve, but rounded corners are simple.

<URL:http://www.google.com/search?q=rounded+corners+css>

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: multimatum2 | last post by:
Hello, I need to enable/disable input text forms... But... I need to have the same style (color...) in both modes.. Could you help me ? Thanx a lot A small sample... ...
31
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
2
by: Urs Vogel | last post by:
Hi When using XmlDocument, I can create nodes and attributes as I like. What I didn't achieve is changing the Value of a node (created with createElement), it claims that it's the wrong node...
6
by: reynard | last post by:
I have a page that uses this doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> but when I change to this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
4
by: Charlotte | last post by:
Hello I was wondering if anyone could tell me how i can change a label dynamically with each click on the label?? Thanks Charly
4
by: Sam Carleton | last post by:
How do I change the CSS colors via JavaScript DOM? Let me explain... I am working on a Windows application (in C#) that displays some HTML. In one place the HTML is a status window. What happens...
3
by: ICPooreMan | last post by:
The following is a very simple example of what I want to do take an elements oncontextmenu and changing it dynamically onclick of that same element. The code below will fail unless you change the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.