![]() |
Adding images to left and right bars
Hi all
I have been successful in adding images to the left and right bars by editing home.tpl and adding this line of code. <img src="{$ImagesDir}/banners/test_image.gif" alt="" / > I am not a programmer and want to know if this is correct. Should I be creating a table? I recently added a link from one of the images and it turned the "Your Cart" box header into the linked page as well?????? I used this code: <a href="http://test_site.com/" target = "_blank"><img src="{$ImagesDir}/banners/test_image.gif" alt="" /> Help if you can. Thanks |
Re: Adding images to left and right bars
You forgot the closing </a>
<a href="http://test_site.com/" target = "_blank"><img src="{$ImagesDir}/banners/test_image.gif" alt="" /></a> |
Re: Adding images to left and right bars
Ahhhh, nice catch, thanks.
So is it okay to add images without tables etc. I have read a lot about "clean" programming - but I don't know what that is exactly. Would this be considered clean? |
Re: Adding images to left and right bars
Tables are used for one thing - tabular data. You shouldn't use them anywhere else in your site - particularly the 4.2 branch since it is css-based. I know it is tough to get out of the table mindset if that is what you are used to, but you do not need to use them :)
|
Re: Adding images to left and right bars
Thanks for the help.
|
All times are GMT -8. The time now is 09:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.