css - How to give red line before the text box in html? -


i using html. how can give red line before text box in screen shot?

enter image description here

thanks!

there plenty ways, 1 of them place input inside of div , style css.

here example:

<div style="border-left: 2px solid red; padding-left: 2px;">     <input type="text" /> </div> 

and here can see how looks like:

http://jsfiddle.net/r9mzn/


Comments