Yes, fallback content can be a normal <img /> element with a fallback
bitmap image, and further fallback alt-text.

To make the width dynamic you need to do two things. 
  1) Your SVG image mustn't declare a fixed width in itself
  2) You need to do the sizing with CSS.

My preferred way is to place the object in a container (which you have
to do anyway) and use CSS to make the object size to width: 100%.
Then, no-matter what size your container is, the object should resize
smoothly.

I have a crude example at home which I'll post for you later on.

Ben

On 7/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ben Ward wrote:
> > Use the <object> tag, just like we do with Flash. The SVG mimetype
> > ("type" atrribute) is "image/svg+xml" so you'd have something like:
> >
> > <object type="image/svg+xml" data="image.svg">
> >   <!-- fallback content -->
> > </object>
> 
> would the fall back content maybe be a jpg, gif or png of the svg image?
> 
> 
> > You can add width and heigh into that if you need to (though that
> > rather defeats the purpose of using vector graphics). No <embed> tags
> > needed at all. I can't fathom why you've been advised to use <embed>
> > at all, I must say.
> 
> when i googled the question, adobe support was one hit and they said in
> their explanation to <embed> the graphic in the html.
> 
> if i wanted to use this image as a background image to fit the viewport
> or container, regardless of the users resolution, how would i do this?
> 
> dwain
> 
> 
> 
> --
> Dwain Alford
> [EMAIL PROTECTED]
> http://www.alforddesigngroup.com
> 
> "The artist may use any form which his expression demands;
> for his inner impulse must find suitable expression."
> Wassily Kandinsky, "Concerning The Spiritual In Art"
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
> 


-- 
http://ben-ward.co.uk
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to