+ 2

How to display a line with text in html?

Like this: -------------this is text------------ but this code does not have continuous line <html> <head> <title>Attributes</title> </head> <body> <p align="center">This is a text <br /> <hr width="10%" align="right" /> This is also a text. </p> </body> </html>

3rd Feb 2018, 12:27 PM
Ravi bharathi. T. S
Ravi bharathi. T. S - avatar
1 Respuesta
+ 9
... <style> .ib { display: inline-block; vertical-align: middle; width: 10%; } </style> ... <p><hr class="ib">TEXT<hr class="ib">Another text</p>
3rd Feb 2018, 2:27 PM
K137(){/**/};
K137(){/**/}; - avatar