I am facing an issue where a scroll is being created and it appears offset on different screen sizes:
https://i.sstatic.net/KYTCN.jpg
I need help to resolve this problem and make it responsive.
Even after trying to add overflow: hidden; it still doesn't work as expected
Check out the code below for further details
<!DOCTYPE html>
<html lang="es">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- FontAwesome Icons -->
<link rel="stylesheet" href="estilo.css" type="text/css">
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/jquery-3.6.0.min.js"></script>
<title>asdfasd</title>
</head>
<body id="imgFondo">
<!-- Body content goes here -->
</body>
CSS styling used in the project:
@import url(https://fonts.googleapis.com/css?family=Raleway:300,700);
.contenido {
width : 80%;
margin-left : auto;
margin-right : auto;
}
.navbar-collapse {
justify-content : right;
}
...
/* Various styles for elements present in the project */
...
@media (max-width : 767px) {
.carousel-item img {
width : 100% !important;
display : block !important;
}
.fh {
height : 100vh !important;
background-image : url("../img/fondoLogin.jpg");
background-position : center;
background-repeat : no-repeat;
background-size : cover;
}
}
#demo {
background : #c7c7c7;
}
#validarCuenta, #transferir {
background-color : #921E30 !important;
border-color : transparent;
}
#datosTransferencia, #transferir {
display : none;
}
If you have any suggestions on how to fix this issue, please let me know!