Add alt and title without array! |
[eluser]Jumps Like A Black Guy[/eluser]
I've looked everywhere and cant figure out how I can add a title and alt text to the image below. I keep getting errors with everything I try. Code: <td class="dt2"> I've been pulling my hair out trying to solve this, but cant. I cant find a straight answer. I know this is possible without using an array. Any help is a plus... Thanks
[eluser]mi6crazyheart[/eluser]
Here is an example how u can use CI's anchor() to show image with "alt" & "title". You just modify it as u'r need... Code: $image_properties = array(
[eluser]Jumps Like A Black Guy[/eluser]
I just want to add an alt and title to the code I have above... I dont want to use any image array... I want to know if this is possible.
[eluser]John_Betong[/eluser]
I don't use the img(...) function and decided to check it out. http://ellislab.com/codeigniter/user-gui...elper.html Basically the function accepts either an image path or an array with all the image attributes. To get round your problem try this: Code: echo '' In future I will try to utilise the img() function, it looks as though it will make my scripts more readable and also a lot more flexible to use the image attribute parameter. |
Welcome Guest, Not a member yet? Register Sign In |