467,908 Members | 1,194 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,908 developers. It's quick & easy.

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
  • viewed: 3120
Share:
4 Replies
harshmaul
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
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
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
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
By using this site, you agree to our Privacy Policy and Terms of Use.