+ 11
I really do not understand the height. I would like to explain to someone! Thank you!
7 Antworten
+ 12
How "Which height", so x and y axis and y is in!
+ 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>
+ 1
hr doesn't support height attribute. It's not global attribute
+ 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>
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
0
Hr is horizontal break , a horizontal line underneath the element so it doesn’t have height