Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to align text and image in anchor tags.
I have done so far:

HTML
<ul>

<li> <a href='/adminsetting/index'>Moodle Settings <img src="../img/Themelink1.png"/></a></li>
	        
<li><a href='/adminsetting/themedesigner'>Theme Designer <img src="../img/Themelink2.png"/></a></li>
	        
<li><a href="#">Payment Details <img src="../img/Themelink3.png"/></a></li>
	        
<li><a href="#">Account Profile <img src="../img/Themelink4.png"/></a></li>
	       
<li><a href="#">Trainig <img src="../img/Themelink5.png"/></a></li>
	       
<li><a href="#">Help <img src="../img/Themelink6.png"/></a></li>
	       
</ul>



and css used is:

CSS
ul li{
list-style:none;
}



I want output like this:
HTML
Moodle Settings img
 Theme Designer img
Payment Details img
       Training img
           Help img



but my output is like:
Moodle Settings img
Theme Designer img
Payment Details img
Training img
Help img
Posted

1 solution

Fiddle for this[^]

I hope the fiddle helps you.
Based on the output I have worked on this fiddle. Check this if it helps you anyway.
Post back your queries if any.
Thanks.
 
Share this answer
 
Comments
Ishpreet Kaur 28-Nov-14 5:47am    
Thanks a lot.
[no name] 28-Nov-14 6:17am    
Always welcome. Keep coding and posting..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900