sprite image link - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: sprite image link (/showthread.php?tid=35333) |
sprite image link - El Forum - 10-26-2010 [eluser]Unknown[/eluser] Sorry I'm newbie in CI I'm try to use css image sprite for a link.. but I confused how to use css class in my code this is my code in hmtl Code: <li ><a class="search" href="#"></a></li> I'm tryin to use anchor, Code: <li ><a><?php anchor('#', '', array('class' => 'logout'));?></a></li> but the image that I'm used do not appear in display thanks sprite image link - El Forum - 10-26-2010 [eluser]andyy[/eluser] Try this: Code: anchor('#', 'Link Name', 'class="logout"'); sprite image link - El Forum - 10-27-2010 [eluser]Fireclave[/eluser] 1. why are you using <a> and then anchor ? the anhor() is your <a> 2. Your Secound Parameter is your Link text. Why is it empty ? |