Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all stylings (border, glow) from textarea

I want to remove the stylings from a textarea and leave it all white without any border or glow, if possible. I've tried with different stuff found here on SO, but nothing works (tried with FF and Chrome).

So, is it possible and if so how to do it?

enter image description here

What I've tried so far:

textarea#story {   // other stuff   -moz-appearance:none;   outline:0px none transparent; }  textarea:focus, input:focus{     outline: 0; }  *:focus {     outline: 0; } 
like image 567
holyredbeard Avatar asked Jun 14 '13 13:06

holyredbeard


People also ask

How do I remove the border color in HTML?

We can specify the no border property using CSS border: none, border-width : 0, border : 0 properties.


1 Answers

The glow effect is most-likely controlled by box-shadow. In addition to adding what Pavel said, you can add the box-shadow property for the different browser engines.

textarea {     border: none;     overflow: auto;     outline: none;      -webkit-box-shadow: none;     -moz-box-shadow: none;     box-shadow: none;      resize: none; /*remove the resize handle on the bottom right*/ } 

You may also try adding !important to prioritize this CSS.

like image 133
IamShipon1988 Avatar answered Oct 14 '22 06:10

IamShipon1988