Recently, I've been working on a simple front page design but encountered an issue with moving my background. Despite trying different approaches like adjusting padding, the problem persists. As a beginner in coding, this has been quite a challenge, but I'm determined to figure it out! My goal is to center the container with the following background color: rgba(98, 97, 99, 0.25), ensuring equal spacing on both sides. Interestingly, the code appears correctly for me, except when viewed here, possibly due to Bootstrap usage.
body html {
margin: 0;
padding: 0;
}
.container {
background-color: rgba(98, 97, 99, 0.25);
padding-top: 4%;
}
.wrap{
width: 1090px;
}
video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
z-index: -100;
}
<!-- More CSS Snippets Here -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>homepage</title>
<link href="index.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!-- HTML Structure Here -->
</body>
</html>