Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <div class="row justify-content-center align-items-center">
- <form>
- <div class="form-group">
- <label for="formGroupExampleInput">Example label</label>
- <input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input">
- </div>
- <div class="form-group">
- <label for="formGroupExampleInput2">Another label</label>
- <input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input">
- </div>
- </form>
- </div>
- </div>
- <div class="container h-100">
- <div class="row h-100 justify-content-center align-items-center">
- <form class="col-12">
- <div class="form-group">
- <label for="formGroupExampleInput">Example label</label>
- <input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input">
- </div>
- <div class="form-group">
- <label for="formGroupExampleInput2">Another label</label>
- <input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input">
- </div>
- </form>
- </div>
- </div>
- html, body {
- height: 100%;
- }
- .container, .row.justify-content-center.align-items-center {
- height: 100%;
- min-height: 100%;
- }
- <section class="h-100">
- <header class="container h-100">
- <div class="d-flex align-items-center justify-content-center h-100">
- <div class="d-flex flex-column">
- <h1 class="text align-self-center p-2">item 1</h1>
- <h4 class="text align-self-center p-2">item 2</h4>
- <button class="btn btn-danger align-self-center p-2" type="button" name="button">item 3</button>
- </div>
- </div>
- </header>
- </section>
Add Comment
Please, Sign In to add comment