Despite my experience in programming, I am struggling with CSS and HTML. I am attempting to create a simple "Login Page" for my personal web application.
GitHub: https://github.com/n-winspear/cashflow-webapp
After trying various solutions suggested in other threads, such as:
- Adding specific heights to columns, rows, and containers.
- Experimenting with different classes like center-text, justify-content-center, align-self-center, align-items-center.
- Changing container and form types.
- Loading CSS directly from a URL instead of a local file.
<div class="container-fluid">
<div class="form-row align-items-center">
<div class="col-sm-4 offset-sm-4">
<form class="form-signin">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
My goal was to have the form centered on the web page, but it remains stuck at the top.
Current layout shown here: https://i.sstatic.net/qUHPJ.png