471,596 Members | 1,154 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

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

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
4 3253
harshmaul
490 Expert 256MB
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
4,258 Expert 4TB
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
490 Expert 256MB
D'OH, forgot the fundementals!! I was straight in there with the most complex solution i could think of ;)
Feb 25 '08 #4
ronverdonk
4,258 Expert 4TB
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.

Similar topics

1 post views Thread by Margaret Asami | last post: by
8 posts views Thread by FUGATO | last post: by
1 post views Thread by duzhidian | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.