I am hoping to maintain the current box size and borders, but I want to add a touch of color. Specifically, I would like to have a red line running through the center of the box without coloring the entire background. Although I know one way to achieve this is by creating an additional div element, I'm interested in finding a solution that uses just one element for both purposes. Is this feasible?
background-color: red;
position: absolute;
margin: 120px 30px 0px 30px;
height: 140px;
width: 400px;
border: 0.2rem rgba(172, 255, 47, 0.565) solid;
Here is how it currently appears: https://i.sstatic.net/dDaPA.png. Instead of completely coloring the box red, I would prefer to keep the same dimensions and borders, with only a red line in the center. Is there a way to accomplish this?