Rocking
asked on
how to apply line break <br> in href tag
Hi,
I need to display hello world in the format
hello
world.
I am using <a href ="hello_world"> hello world </a>
I have to use only single href ? is here any way on which i can achieve this?
I need to display hello world in the format
hello
world.
I am using <a href ="hello_world"> hello world </a>
I have to use only single href ? is here any way on which i can achieve this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I need to see it in context to understand what you mean. You can add more <br> tags
ASKER
No what i mean to say is when i apply the <br> tag the link looks like thsi
hello
world
but the expected output i need is
hello
world
there may be the issue of div in which it is wrapped or other way round,since there are a lots of css are used and screen design is quite complex,i need to know is there any workaround other than applying the
<a href ="hello_world">hello<br>wo rld</a> to achieve the output
hello
world
but the expected output i need is
hello
world
there may be the issue of div in which it is wrapped or other way round,since there are a lots of css are used and screen design is quite complex,i need to know is there any workaround other than applying the
<a href ="hello_world">hello<br>wo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
All we are going to get here is speculation until you post a link so we can see context. An answer might come from a lucky guess, and guessing is about all you are going to get with the information you have provided.
Cd&
Cd&
ASKER
@ChrisStanyon
if i put this code in a plain html the output is
<a href ="hello_world" style="line-height:1em;">h ello<br/>w orld</a>
hello </br> world
if i put this code in a plain html the output is
<a href ="hello_world" style="line-height:1em;">h
hello </br> world
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is this exactly what you get
hello </br> world
If it is then you are not telling us the whole story.
hello </br> world
If it is then you are not telling us the whole story.
ASKER
this was exactly as per my requirement
ASKER
hello
world