Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove borders around textbox when adding background imageI have

Tags:

html

css

I have a textbox of which by I removed the default borders using outline:none; However, when I add a background-image the border is shown and can't be removed!

How do I get rid of this? Here is the box:

<input type = "text" placeholder = "Username" class = "txt_input">

and the css:

background: url('images/user-icon.png') left no-repeat;
margin-bottom: 5px;
box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.5);
font-family: 'ProximaNova-Bold';
outline: none;
width: 200px;
height:30px;
text-align: center;
text-transform: capitalize;
padding:15px;
padding-left:21px;
like image 606
GIVENALITY Avatar asked May 28 '13 11:05

GIVENALITY


People also ask

How do I get rid of the border around a text box?

Remove the border Select the text box or shape. If you want to change multiple text boxes or shapes, click the first text box or shape, and then press and hold Ctrl while you click the other text boxes or shapes. On the Format tab, click Shape Outline, and then click No Outline.

How do I get rid of the white border around a picture in Word?

Select the picture whose border you want to remove. On the Page Layout tab, in the Page Background group, select Page Borders. Click the Borders tab. Under Setting, select None.

How do I get rid of borders and shading?

On the Page Layout tab, in the Page Background group, select Page Borders. In the Borders and Shading dialog box, on the Page Border tab, under Setting, choose None. Select OK.


1 Answers

add a border: 0px none; to your css? The outline handles only the focus border.

like image 134
Axel Amthor Avatar answered Nov 15 '22 00:11

Axel Amthor