Welcome Guest, Not a member yet? Register   Sign In
sprite image link
#1

[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>&lt;?php anchor('#', '', array('class' => 'logout'));?&gt;</a></li>

but the image that I'm used do not appear in display

thanks
#2

[eluser]andyy[/eluser]
Try this:
Code:
anchor('#', 'Link Name', 'class="logout"');
#3

[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 ?




Theme © iAndrew 2016 - Forum software by © MyBB