Sikander
Sikander

Reputation: 2835

Bootstrap 3: How to align text in button

i am using following code to create a button

<input type="submit" class="btn btn-warning btn-block" name="send" id="send" value="Send Password" ">

now its text is in center how do i float Send Password to left of button as this is set inside button tag

Upvotes: 1

Views: 40

Answers (1)

j08691
j08691

Reputation: 207861

Bootstrap has it's own text alignment classes, however since you're using button classes on this input, the text-alignment will be overridden. You can however, just create your own rule which is more specific than Bootstrap's rules:

#send {
  text-align:left;
}

bootply example

Upvotes: 2

Related Questions