Post Archive

› April 30, 2002

SVG

  • Reported by dr.u

As a web site bound to discuss design. I am curious to know what people have been doing with SVG. I have been reading up on SVG at XML.com's Graphics Area. While reading through the articles I got the itch to apply some SVG to an XHTML doc I had on the computer. The question that I have right now, is how does one use an svg image for the background of a div? I think it would be awesome to have a gradient background that is does not consume bandwidth.

Does anyone out there have any comments. Also, who out there is currently using SVG to enrich their websites? It appears that the website SVGspider has gone all out and designed a 100 percent SVG site. Are there reasons why you have choosen to not use svg on your site? I will be watching to see what people have to say about this as I find it to be an interesting alternative to Macromedia's Flash technology.

Comments

1. April 30, 2002 08:47 AM

Quote this comment

Michael Facius Posted…

That I haven’t found an answer to this question: How does one use an svg image for the background of a div is the only reason why I am not using svg yet. I don’t want complete svg-Sites, but, to use xml lingo, svg “islands” in my xhtml files, perhaps even through <object> or as a replacement for images. But as far as I can see that’s not yet possible.

In general, I find svg to be very powerful and promising. Given the points in question mentioned above, I’m currently using it only for RDF applications (e.g. w3c RDF validator).

2. April 30, 2002 05:52 PM

Quote this comment

Andyed Posted…

In any deployment, SVG is not going to be addressable with CSS background attributes AFAIK. The only possible route is with layered divs, manipulating z-index and using absolute positioning. I’d be interested in your testing on z-index and the Adobe SVG plugin. Plugin content has a historical trend of being very unfriendly to layering, tending to rise to the top independent of z-index. Mozilla’s under-development partial implementation of SVG on the other hand can be freely intermingled with other DOM content (though not specified as a background-image). Alas, SVG is not in the default Mozilla builds and will not be for 1.0. You can get a copy from ftp.mozilla.org....nightly/latest/ for win and linux. The link above has pointers to Mozilla SVG samples.

3. April 30, 2002 09:45 PM

Quote this comment

John Dowdell Posted…

Howdy, for layering, recent versions of the Adobe SVG Viewer so support a “wmode” parameter to the OBJECT tag, so you can put static HTML above this content in IE3+/Win. (I haven’t yet seen other browsers which offer such “windowless” plugins.)

(For SVG itself, it reminds me of Java in many ways... the early focus was on clientside use, but then it found new life as a serverside technology.)

Regards,
John Dowdell
Macromedia Support