How to link image with anchor function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to link image with anchor function (/showthread.php?tid=13305) |
How to link image with anchor function - El Forum - 02-23-2011 [eluser]Unknown[/eluser] Code: <?php $img_edit = '<img src="'.base_url().'images/build/edit.png"/>'?> How to link image with anchor function - El Forum - 04-05-2011 [eluser]keld[/eluser] I thought I would just add my two cents to this thread about embedding images in anchor tags Code: //Link + no title + Image + no alt Code: <a href="http://www.mysite.com/products/product/productname"><img src="http://www.mysite.com/images/featured/feat_105x145.png" alt=""/></a> Code: //Link + title + image + no alt Code: <a href="http://www.mysite.com/products/product/productname" title="My Title"><img src="http://www.mysite.com/images/featured/feat_105x145.png" alt=""/></a> Code: //Link + title + image + alt Code: <a href="http://www.mysite.com/products/product/productname" title="My Title"><img src="http://www.mysite.com/images/featured/feat_105x145.png" alt="My Alt"/></a> |