Issue: While working on creating a signup form, I've encountered a problem where the screen has a slight overflow on the right side whenever there are form groups included in the form.
Steps taken so far: I have utilized Chromium dev tools to identify that deleting every .form-group resolves the overflow issue. Despite searching through stack-overflow and Google, I haven't found a solution yet.
Current Code Snippet: Below is the code for my form, which also includes Bootstrap from the CDN links provided:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<div class="content">
<div class="row">
<div class="col-sm-12 col-md-3 col-lg-3 col-xl-4"></div>
<div class="col-sm-12 col-md-6 col-lg-6 col-xl-4">
<form class="">
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" class="form-control" id="email" name="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" id="username" name="username" placeholder="Enter username">
</div>
<div class="row">
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Password">
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6 col-xl-6">
<div class="form-group">
<label for="confirmpassword">Confirm Password</label>
<input type="password" class="form-control" id="confirmpassword" name="confirmpassword" placeholder="Confirm Password">
</div>
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
In addition, here is the .content
CSS code being used:
.content {
padding-left: 10px;
padding-right: 10px;
}
Desired Outcome: The goal is to resolve the overflow issue and ensure a seamless user experience without any unexpected disruptions on the screen.