+ 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.

26th Aug 2017, 4:09 AM
Anuranjan Kumar
Anuranjan Kumar - avatar
3 ответов
+ 5
<hr width="50%" align="center"> <hr size="5" width="50%" align="center"> <hr noshade size="5" width="50%" align="center">
26th Aug 2017, 4:47 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
GAWEN is right. Or you can add CSS if you want all lines to be of same length.
26th Aug 2017, 4:48 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Try this <h1 style="display: inline-block;">This is main title<hr></h1> https://code.sololearn.com/W7teGa30bnNb/?ref=app
26th Aug 2017, 4:48 AM
Calviղ
Calviղ - avatar