Remove all stylings (border, glow) from textarea

后端 未结 4 524
滥情空心
滥情空心 2020-12-24 00:25

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

相关标签:
4条回答
  • 2020-12-24 00:47

    try this:

    textarea {
            border-style: none;
            border-color: Transparent;
            overflow: auto;
            outline: none;
          }
    

    jsbin: http://jsbin.com/orozon/2/

    0 讨论(0)
  • 2020-12-24 00:50

    if no luck with above try to it a class or even id something like textarea.foo and then your style. or try to !important

    0 讨论(0)
  • 2020-12-24 01:00

    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.

    0 讨论(0)
  • 2020-12-24 01:01

    If you want to remove EVERYTHING :

    textarea {
        border: none;
        background-color: transparent;
        resize: none;
        outline: none;
    }
    
    0 讨论(0)
提交回复
热议问题