Is there a way to create a Y-axis style line in HTML and CSS that looks like an actual Y-axis?
I've attempted the following approach, which technically works but doesn't have the desired appearance.
#mySpan{
writing-mode: vertical-lr;
transform: rotate(180deg);
}
<table >
<tr>
<td><span style="writing-mode: vertical-lr;
transform: rotate(180deg);"> <b>Secondary Axis</b></span></td>
<td>
<ul>
<br><br><br>
<li>3</li><br><br><br><br>
<li>2</li><br><br><br><br>
<li>1</li><br><br><br><br>
<li> 0</li><br><br><br><br>
</ul>
</td>
<td>
<div style="border-left: 1px solid black; height:250px;position:left;left: 50%;">
</div>
</td>
</tr>
</table>
Unfortunately, this method also takes up additional space at the top or bottom due to the use of br
tags.
Can anyone offer suggestions on how to modify this code so that it more closely resembles a Y-Axis?
Thank you