Changing bootstrap caret(color and position)

前端 未结 7 2367
广开言路
广开言路 2021-02-12 14:24

I want to change color of caret and make it not relative from input text, because it\'s hard to make it look good when it is.

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 14:41

    Found this simple solution to change the position of the caret.

    //example of moving curser 20 pixels to the right
    input { 
        padding-left: 20px;
        padding-right: -20px;
    }
    

提交回复
热议问题