screen size
Unanswered
American posted this in #help-forum
AmericanOP
basically i want this right side textbox to not overlap w the banner and whenecer i change the screen size it overlaps
9 Replies
AmericanOP
ok
ill show code
.home-container {
height: 125vh;
position: relative;
overflow: hidden;
background-color: #000000db; /* Fallback background color */
background-size: cover; /* Cover the entire background */
background-position: center; /* Center the background image */
}
.banner {
background-image: url('splash3.jpg');
color: white;
padding: 20px;
text-align: center;
height: 30vh; /* Adjusted height for responsiveness */
border: 2px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 0 10px rgba(0, 0, 0, 1);
background-size: cover;
background-position: center;
}
.content {
position: relative;
z-index: 2;
background-attachment: scroll;
height: 50vh; /* Adjusted height for responsiveness */
}
.right-side-textbox {
position: absolute;
top: 0px; /* Adjust based on navbar's actual height */
right: 0;
bottom: 0;
width: 300px; /* Fixed width */
background-color: rgb(255, 255, 255);
padding: 20px;
overflow-y: auto;
}so the right textbox
so this is how it currently looks right
lets say if i were to change the size of the screen
it goes onto the navbar
i dont know how to fix this
AmericanOP
so anyone