I really do not understand the height. I would like to explain to someone! Thank you! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

I really do not understand the height. I would like to explain to someone! Thank you!

https://code.sololearn.com/W84m98hKlBPs/?ref=app

21st Apr 2018, 3:15 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
7 Answers
+ 12
How "Which height", so x and y axis and y is in!
21st Apr 2018, 3:22 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
+ 7
to choose the size in hr tag not supported in html5 but you can do it with css like: <!DOCTYPE html> <html> <body> <p>A normal horizontal line:</p> <hr> <p>A horizontal line with a height of 30 pixels:</p> <hr style="height:30px"> </body> </html>
21st Apr 2018, 3:41 PM
Baraa AB
Baraa AB - avatar
+ 1
hr doesn't support height attribute. It's not global attribute
21st Apr 2018, 3:25 PM
Toni Isotalo
Toni Isotalo - avatar
+ 1
<hr> like all elements support relative height but not so... you must: - use css rule - set a fixed height to parent element (<p> in your case) <p style="height:350px"> <hr style="height:20%" /> <hr style="height:50%" /> </p>
21st Apr 2018, 3:42 PM
KrOW
KrOW - avatar
0
https://code.sololearn.com/W67r985R4X8Z/?ref=app You cleary can see that the height corresponds to the y axis (vertical measure) and that it hasn't the same influence on the <hr /> tag
21st Apr 2018, 3:27 PM
Master Assassin
Master Assassin - avatar
0
Hr is horizontal break , a horizontal line underneath the element so it doesn’t have height
24th Apr 2018, 2:38 PM
Daniom dt
Daniom dt - avatar