473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SVG as image for a XHTML-element?

hi!

i want to embed an svg image in a xhtml element
using css. it does not work in firefox 2 and other
modern browsers.
is this

a) because these browsers don't support the
newest standards yet,

or is it

b) because the standards forbid to do so at all?
if a) is correct, have you experience with current
alpha of firefox3? is that possible there?
thanks in advice!

Jan 14 '07 #1
3 1594
* li********@yandex.ru wrote in comp.text.xml:
>i want to embed an svg image in a xhtml element
using css. it does not work in firefox 2 and other
modern browsers.

is this

a) because these browsers don't support the
newest standards yet,
Yes, you could say that.
>if a) is correct, have you experience with current
alpha of firefox3? is that possible there?
Not at the moment.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Jan 15 '07 #2
<li********@yandex.ruwrote:
i want to embed an svg image in a xhtml element
using css. it does not work in firefox 2 and other
modern browsers.
it's possible to embed an svg image inline of an xhtml file.

see
<http://www.yvon-thoraval.com/SVG/moz...portable.xhtml
>
this solution is the best if you want to manipulate the DOM tree of the
svg itself (otherwise you could embed the svg file as an object like :

<object data="your_svg_file.svg" blahblahblah>
[...]
</object>

)

see how it is done in the file
<http://wwww.yvon-thoraval.com/index.html>

for svg-dom manipulation have an eye to :

<http://www.yvon-thoraval.com/SVG/svg_dom2.xhtml>

works at least on firefox 2/MacOS X the latest
doesn't work with Opera (bugg report)
works partly with WebKit which has a repaint prob (bug report)
--
Artaban de Médée
Jan 15 '07 #3
VK
li********@yandex.ru wrote:
i want to embed an svg image in a xhtml element
using css
Not sure what you mean by that: an SVG document is not a stylesheet, it
has its own set of elements and respectively its own set tags.
it does not work in firefox 2 and other
modern browsers.
However great Opera would be it is not of royal family to talk of it in
plural :-)
Currently UAs with native SVG support are Firefox 1.5.x, Firefox 2.x
and Opera 8.2 or higher. Though if we count all Gecko-based browsers
then the number gets higher (Camino 1.x , SeaMonkey and Co)
a) because these browsers don't support the newest standards yet,
or is it>
b) because the standards forbid to do so at all?
Neither. It is because namespaces as such and respectively mixed
namespaces by W3C exist only in XHTML. HTML by W3C doesn't have
namespace: nor default nor null - it simply doesn't have such entity
just like emptyness doesn't have color.

And XHTML exists only if document served with proper Content-Type
where the recommended is application/xhtml+xml
If it is served with Content-Type text/html then for any browser it is
a HTML document no matter how many "powerful" pragma spells you have
placed before and in <htmltag

So make your server send it as application/xhtml+xml and enjoy wherever
supported.

Jan 16 '07 #4

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

Similar topics

4
by: Kenny | last post by:
I have been trying to write a script that will increase the size of and image when you mouse over it, and decrease it to original size, when you mouse out. After a couple of attempts, this is what...
11
by: Tomek Toczyski | last post by:
What is the best way to attach a caption to an image in xhtml? I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural...
10
by: bessington | last post by:
hey all, i'm having a rather bizarre problem.. the image tag i have declared in my xhtml is not showing in safari / konqueror but showing just fine in Firefox, IE, Opera... this is a complete...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
11
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/Demo/photo%20block%20experiments.html I've ended up with what seems like a rather complex structure for what I thought would be a somewhat simple...
6
by: Seth Illgard | last post by:
Hi, Im writting a custom CMS and everything looks great, except when I see the results in IE. What im trying to do is: *Have an image in a layer (or relative positioned, or just margined). The...
4
by: Andrew Bailey | last post by:
Hi, Thanks for taking the time to read this. I would be very grateful if you are able to help me solve the two problems below... PROBLEM 1: I spent a lot of time finding code that would...
1
by: rirby2 | last post by:
Hi everyone, I'm currently having a rendering problem in IE7 (haven't even tried the lower IEs yet), vs. what I see in FF2. The simplified site can be found at solerasd.com . (There are more...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.