Experimenting with SVG instead of PNG

This is a discussion on "Experimenting with SVG instead of PNG" within the Web Page Design section. This forum, and the thread "Experimenting with SVG instead of PNG are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 18th, 2007, 23:51
New Member
Join Date: Feb 2007
Location: Lillehammer
Age: 20
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Experimenting with SVG instead of PNG

Hi,

I am curious about, and really would like to move to Scalable Vector Graphics (SVG) from PNG on my blog about open source.

However, I am really concerned about how well the format is supported!

Can someone please assist me with a coding example of embedded SVG on a XHTML page?

This is the best I have come up with so far. The problem with this code is that I am unable to use display: inline;, which really sucks! Another problem is that no browser that does not support SVG seams to display the alternate PNG image.

HTML: Select all
<object type="image/svg+xml"
data="http://opensource-notebook.com/lib/images/scalable/feed-icon.svg"
style="width: 40px; height: 40px;"><img
src="http://opensource-notebook.com/lib/images/feed-icon.png"
alt="News feed icon" /></object>
Other, and possibly better approaches?
Reply With Quote

  #2 (permalink)  
Old Feb 19th, 2007, 05:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with SVG instead of PNG

Is there a reason to use SVG instead of regular images? I'm not very well read on the subject.
Reply With Quote
  #3 (permalink)  
Old Feb 19th, 2007, 06:01
New Member
Join Date: Feb 2007
Location: Lillehammer
Age: 20
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Experimenting with SVG instead of PNG

Hell yea!

If you look at the example image, you see that I use it several places on my Website, and with different sizes.

Since SVG is scalable, you will get a lossless rendering of the image no mater the size!
Reply With Quote
Reply

Tags
scalable graphics, svg

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Experimenting with CSS szronik Web Page Design 10 Aug 2nd, 2006 16:19


All times are GMT. The time now is 02:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43