Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Break in HREF to move to next line

Tags:

html

css

I have the following line.

<li><a href="Very_long_text_in_this_line">'Very long text in this line'</a>  
</li>

I want to break it in this format.

Very long text

in this line

I tried br but couldn't get the output.

How can I achieve this?

Thanks in advance.

like image 814
PMM Avatar asked Dec 07 '22 19:12

PMM


1 Answers

I think br does just fine.

<li><a href="Very_long_text_in_this_line">'Very long text <br/> in this line'</a>
</li>

However if you don't want br then use a div

<li><a href="Very_long_text_in_this_line">'Very long text <div>in this line'</div></a>  
</li>
like image 159
shubham agrawal Avatar answered Dec 10 '22 12:12

shubham agrawal