kineticcreative123 wrote
Hello,
I have two questions regarding my buttons and the width of the page. The page loads fine with the horizontal layout is looking as it should but there is left padding behind the side menu which enables the page to scroll left to right. How can I adjust this so this doesn't happen. I like the spacing between the blue menu bar and the page content but can't figure out by just changing the padding.
I can point you in the right direction.
The horizontal scroll is being caused by these seperator divs in your main content:
<div class="stretch-across2" style="background-position-y:100%;" id="typography">
<h1 class="text-overlay parallaxtext">Typography</h1>
</div>
You need to revise how you are deploying them.
I would give your main-content <div> (the one which wraps all your sections) a class of 'content-wrapper' and a left margin of 270px so it sits flush to the right of the blue sidebar.
<div class="content-wrapper">
<section class="resume-section p-3 p-lg-5 d-flex d-column" id="about">
.content-wrapper {
margin-left: 270px;
}
Then set the margin to zero again at 990px;
@media screen and (max-width: 990px) {
.content-wrapper {
margin-left: 0;
}
}
You just then need to figure out how you want those stretch-across2 <divs> to function without them forcing a horizontal scroll.
Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
