+ 1
Regarding the hr tag
how to set hr tag according to text size. if the text is not fixed. Suppose the text is in full length, the hr size is in full length else the size of the hr is varying according to the text.
3 ответов
+ 5
<hr width="50%" align="center"> <hr size="5" width="50%" align="center"> <hr noshade size="5" width="50%" align="center">
+ 4
GAWEN is right.
Or you can add CSS if you want all lines to be of same length.
+ 3
Try this
<h1 style="display: inline-block;">This is main title<hr></h1>
https://code.sololearn.com/W7teGa30bnNb/?ref=app