Reputation: 29577
Here is my jsFiddle with full code example.
I would like:
container
(that is, the <h1>
that starts "Sign in to..." as well as the entire <form>
element) to be centered in the screen; andI am trying to style center the container via text-center
. I am trying to align the link via text-left
. Neither are working:
<div class="container">
<div class="row">
<div class="col-md-8 text-center">
<h1 class="strong-primary">Sign in to continue to Audit<b>Cloud</b>.</h1>
</div>
<div class="col-md-4 text-center">
<form role="form">
<div class="form-group">
<input type="email" class="form-control" id="signin-email" placeholder="Your email">
</div>
<div class="form-group">
<input type="password" class="form-control" id="signin-password" placeholder="Password">
</div>
<button type="submit" class="btn form-control btn-lg btn-success">Sign in</button>
<div class="form-group"><a href="#" class="text-left">Need help?</a></div>
</form>
</div>
</div>
</div>
Any ideas?
Upvotes: 2
Views: 46
Reputation: 7771
You need to apply text-align:left;
to the containing <div>
. Instead of class="text-left
, use style="text-align:left;
. I put those changes into your fiddle:
Upvotes: 1