0
How to display a horizontal line with a gap/space in between?
11 Respostas
+ 5
Anna welcomeđ
+ 4
narendra
It can be done as...
<hr width = "50px" />
Check the lesson below:
https://www.sololearn.com/learn/HTML/1029/
+ 4
narendra then increase the width..To maybe 100%..âșâș
+ 4
Anna
Following for your enrichment:
vh stands for percent of view height
For window view of around 500px, 33vh is around 166px
Asker mobile around 300px screen width
So he sees "a half line"
.
Also in this series is
vw
vmax
vmin
+ 3
<hr>
<hr>
Use twice
https://code.sololearn.com/WPfCVs56jx5q/?ref=app
+ 2
Anna thanks for replying, đ maybe I ask Kishalaya to help tomorrow
+ 1
I suck at HTML but I would try something like:
<table>
<tr>
<td style="width:33vh"><hr /></td>
<td style="width:2vh">& nbsp;</td>
<td style="width:33vh"><hr /></td>
</tr>
</table>
There's probably a better solution though.
/Edit: Sorry, I thought you were looking for a vertical gap in a horizontal line:
____ ____
Now I think what you really want is a horizontal gap between two horizontal lines:
____
____
+ 1
Gordon Thank you for asking me, but I have no idea đ©
+ 1
Gordon Today I learned... đ Thank you! đ
0
no i am saying to display a full line with a space in between. Not to display a half line