svg: prefix in xhtml tags

Post about projects that use Inkscape for web design.
cluesome
Posts: 8
Joined: Thu Sep 16, 2010 11:59 pm

svg: prefix in xhtml tags

Postby cluesome » Tue Oct 05, 2010 9:22 pm

Hi,

I'm using an Inkscape svg picture inline in an .html

cluesome
Posts: 8
Joined: Thu Sep 16, 2010 11:59 pm

Re: svg: prefix in xhtml tags

Postby cluesome » Sat Oct 09, 2010 8:49 am

Maybe I could frame this question differently:

The reason I want to have my svg inline is because I have found that when the browser window is resized the picture is redrawn to fit, which is what I want. I find that importing by using the <object><img> 'belt and buckle' draws the svg to fit the window fine but that if it is then resized smaller, browsers do not redraw to fit the new size but rather they add scrollbars. Not what I want.

So my question becomes, can I import a picture into a page without inlining the markup and still have it redraw to fit the screen on a resize?

Thanks for reading; hope I'm making sense.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: svg: prefix in xhtml tags

Postby ~suv » Sat Oct 09, 2010 12:10 pm

cluesome wrote:my question becomes, can I import a picture into a page without inlining the markup and still have it redraw to fit the screen on a resize?
I don't have an answer - but maybe you can find more information in the recent posts about 'SVG and Browser Support' in Tavmjong Bah's blog (the author of "Inkscape: Guide to a Vector Drawing Program"):


cluesome
Posts: 8
Joined: Thu Sep 16, 2010 11:59 pm

Re: svg: prefix in xhtml tags

Postby cluesome » Wed Oct 13, 2010 10:20 am

Thanks, quick scan looks of use to my problem; will have a proper look shortly...


Return to “Inkscape & the Web”