Center HTML Input Text Field Placeholder

前端 未结 10 1847
半阙折子戏
半阙折子戏 2020-11-28 03:53

How can I centre the input field\'s placeholder\'s alignment in a html form?

I am using the following code, but it doesn\'t work:

CSS ->

inpu         


        
10条回答
  •  眼角桃花
    2020-11-28 04:33

    you can use also this way to write css for placeholder

    input::placeholder{
       text-align: center;
    }
    

提交回复
热议问题