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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -