+ 30

How can we specify the length of horizontal line in html

30th May 2020, 2:33 PM
Demi lune🌙
Demi lune🌙 - avatar
7 Antworten
+ 2
to manupulate hr length use it inside a div and assign div width = hr length desired
17th Jul 2020, 8:36 PM
Divya Mohan
Divya Mohan - avatar
+ 16
Ok thank you
30th May 2020, 2:57 PM
Demi lune🌙
Demi lune🌙 - avatar
+ 14
But it will specify width i want to specify length
30th May 2020, 2:55 PM
Demi lune🌙
Demi lune🌙 - avatar
+ 11
It's actually a bit unintuitive, check yourself. width specifies the length span size specifies the "thickness"
30th May 2020, 2:56 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 11
Divya Mohan Thank you for answering
18th Jul 2020, 12:43 AM
Demi lune🌙
Demi lune🌙 - avatar
+ 7
It's actually *width*: <hr width="30%"> <hr width="100px">
30th May 2020, 2:53 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
width ko 100% kr do
28th Oct 2020, 10:05 AM
Mask Man(What's in a name?)
Mask Man(What's in a name?) - avatar