Seeking assistance in finding a solution as my extensive online search has been unsuccessful. Currently, I have this code to style my form labels:
label {
display:inline-block;
height: 15px;
width: 350px;
float: left;
padding: 5px;
border-top: 1px solid black;
color: black;
font-size: 12px;
}
I am interested in applying the same border-top property to my input, textarea, and select tags. However, styling border-top on these elements affects the border around the element itself. Is there a way to display the border outside, or do I need to utilize other properties to achieve the desired outcome?