Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html Anchor text formatting

Tags:

html

anchor

This may be a basic question but I am using HTML anchor, with the text of the anchor as a multi line paragraph. I have <br> tags in the textpart of anchor which are currently not recognized (all text is in one line in output).
Code for anchor tag is as follows:

    <li>
     <a href="" title="View all ">Printed Documents
       <br>Total distinct count: 88
       <br>Top docs are:
       <br>RevA02A rework for N3784.doc
       <br>PO33006230.pdf
     </a>
   </li>

How do I have anchor text to be formatted on multiple lines? Updated: This list is passed to a js-mindmap.js which generates nodes with the content as this anchor text. I think its somewhere that <br/> tags is escaped..I tried setting the style also but still on 1 line.

like image 294
pri_dev Avatar asked Mar 26 '26 10:03

pri_dev


1 Answers

a{display:block;}, and your br tags should be XHTML so <br />

like image 151
Eric Hodonsky Avatar answered Mar 28 '26 01:03

Eric Hodonsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!