Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hii everyone, in my project iam getting the hyperlinks from database,for this i used datalist in asp.net,but hear i want reduce the line height between the links,so that i can place more no of links, please help me in doing thi....thanks in advance...


with regards
D Ramu
Posted

1 solution

Hi Damu,

Add a jquery and add the css property for the hyperlink as below.

JavaScript
$("#ID").css("line-height","xx");


Thanks
 
Share this answer
 
Comments
Ram7 from Hyderabad 11-Dec-12 22:50pm    
Hii master, thanks for ur responce,nw iam going to try.................
[no name] 12-Dec-12 0:17am    
Yw
you can do one more thing. Add the style to the hyperlink during data retrieval by appending a string to it like "style='line-height: 10px;'". this can be done also.

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