View Single Post
  #3  
Old 04-11-2008, 05:35 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How to add menu/flash photos on the sides

Quote:
Originally Posted by Holub
Code:
for example <img src="images/umbabaraumba.jpg" height=100 width=100>

This is not xhtml compliant code -- don't use it.

An image tag for xhtml should look like this - with the smarty images path - this is where xcart images should always live, unless you want to get into secure vs. nonsecure problems :

<img src="{$ImagesDir}/image.jpg" height="100" width="100" alt="image description" />

NOTE the self-closing tag. This is how images should be used in xcart 4.1.x, if you want your code to validate and work exactly as expected cross-browser/cross-platform. And note the alt field. Always use it, unless you have a compelling reason not to (such as a spacer - then use alt=""). Not every visitor to your site can see -- not to mention the seo value.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote