By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,447 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,447 IT Pros & Developers. It's quick & easy.

How to wrap up a link text when displayed in colum format

P: 2
I have a requirement to display the link in colum format in IE browser. The link text is associated with an image (double arrow). Since the text of the link is large enough to set in one of the column width the text and the image are messed up.

When I tried removing half of the link text then it is properly displayed. For example, from the link text "Give as much detail as possible" if I remove "as possible" the link text will become "Give as much detail" and after removing the some part of text it is properly displayed along with an image. But I need to display the link with complete text. This link is present under text message which is incorporated with <ul> and <li>, there are no <span> or <div> tags for this link. Is there any way to wrap up the link text?

Please let me know your inputs to handle this scenario.

Thanks in advance.
Feb 25 '08 #1
Share this Question
Share on Google+
4 Replies


harshmaul
Expert 100+
P: 490
Hi, if you want to wrap the link text, set the width of the a attribute to a fixed width, or the li element...

Expand|Select|Wrap|Line Numbers
  1. <li style="width:100px"><a href="http://www.google.com">click here for more details</a></li>
Expand|Select|Wrap|Line Numbers
  1. <li><a style="width:100px" href="http://www.google.com">click here for more details</a></li>
Feb 25 '08 #2

ronverdonk
Expert 2.5K+
P: 4,258
Or put a break in the middle of the text, e.g.
Expand|Select|Wrap|Line Numbers
  1. <li><a href="http://www.google.com">click here for<br>more details</a></li>
Ronald
Feb 25 '08 #3

harshmaul
Expert 100+
P: 490
D'OH, forgot the fundementals!! I was straight in there with the most complex solution i could think of ;)
Feb 25 '08 #4

ronverdonk
Expert 2.5K+
P: 4,258
D'OH, forgot the fundementals!! I was straight in there with the most complex solution i could think of ;)
We think so complicated that we never look for the simple.

Ronald
Feb 25 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.