skip to Main Content

I am using twitter bootstrap. How i can set custom paddings in text fields?

My field looks like this:

enter image description here

but I want to make field like this:

enter image description here

3

Answers


  1. use just like

    input[type="text"] {
        padding: 5px;
    }
    
    Login or Signup to reply.
  2. use these css

    input{
    padding:5px;
    }
    
    Login or Signup to reply.
  3. For better programming pratices create a new css file, put your css code and import after the bootstrap.css file.

    See one example at: How to change Bootstrap's global default font size?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search