img
element as much as possible.div
s did you say? 23? And step 6 still doesn't work properly in my browser, probably cause of the images, but still...In the future we get two 'better' methods of image replacement:
<!-- 1 --> <table id="visitors" type="image/svg+xml" src="visitors.svg"> <!-- contents --> </table>
/* 2 */ table#visitors{display:inline-block;/* that was just plain stupid of me */ content:url(visitors.svg); }
What's your favorite?
Why not XLink?
<visitors xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="visitors.svg" xlink:show="embed" xlink:actuate="onLoad" />
At the moment I've got to say I prefer the second one.
In a perfect world I would prefer to produce a clean, tidy and cross platform xhtml code :-))
Bye,
m.
OT: Nice and exemplary source code Anne :-)
It's a question of flexibility.
If i will change the whole site or page with other colors, i've been bounded if i should use too many of those methods.
I tend to stay away from SVGs, due to the lack of support. If I had to, then the CSS way is the way I'd choose, with a suitable hack to hide it from unsupporting browsers.
i would go for option #2: it is syntactically supported by at least one browser already. can be more elegantly hidden by non-supporting browsers (with consequent minimal bandwith). and can be more easily maintained due to its modular concept...