0

How can I make smaller Input?

Here is a default syntax:

<Input type='text' value='' placeholder='Enter Entity'/>

Which would result in:

enter image description here

Unfortunately, unlike buttons, bsSize='xsmall' does not work in this case. Any idea how to make them smaller? (like buttons here)

1
  • And I don't know why the picture is sooo big here! Commented Jun 29, 2015 at 20:14

2 Answers 2

1

Use classes input-lg for larger inputs, or in your case input-sm for a smaller input. This is basic Bootstrap behavior.

See also this Bootstrap page for more information, where this is used with input-groups

Sign up to request clarification or add additional context in comments.

Comments

0

Add this to your Css:

input{
    width: 150px;
    height: 50px;
}

3 Comments

So this overrides the default settings?
And I suppose you mean Input, not input
Yes, you can modify the input like a normal div.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.