I am currently working on recreating the design of lines with an arrow or triangle at the end side of an Input form. The inspiration for this comes from an old flash application that is now being converted to HTML5: https://i.sstatic.net/OCpif.jpg
So far, I have managed to create the lines around the input field similar to this:
https://i.sstatic.net/XagvB.jpg
HTML
<form action="">
<div class="line">
<label>Cab Width =
<input type="number" id="cabWidth" name="cabWidth" min="30" max="57.5" step="0.125" value="32" autofocus> (decimal inches)
</label>
</div>
</form>
CSS
.line {
display: flex;
flex: 1;
width: 100%;
margin: 20px auto;
line-height: 1em;
}
.line:before, .line:after {
content: '';
flex-grow: 1;
margin: 0px 4px;
background: linear-gradient(black, black);
background-size: 100% 2px;
background-position: 0% 50%;
background-repeat: repeat-x;
}
However, I'm struggling to find a way to incorporate a CSS triangle or arrow at the end of these lines. It's proving to be quite challenging.
If anyone has any suggestions or advice on how I could tackle this issue, it would be greatly appreciated.