this scrolling won't stop.

i'm trying to make a personal site. as you can see in video the scrolling won't stop. but in figma image this is not the case i tried giving position absolute but it made it worse. i have this codepen where you can see the whole code. https://codepen.io/samgon/pen/LYvBbrY
samee
CodePen
berry
...
No description
25 Replies
peterpumkineaterr
image is from figma and video is an preview of the current code. and the code i started it from mobile first css
WebDev
WebDev3mo ago
@That's what she said! I've made a few adjustments and this should now work more or less the way you were looking for. Essentially the height: 100vh was causing most of the issues as this was being applied to the sibling instead of body. Another change I made was to make this non-absolute positioned and swapped to a vertical writing mode. A few adjustments are needed, likely, but that should get you started.
WebDev
WebDev3mo ago
Also, I should add if you want to avoid a vertical scrollbar on smaller devices, you could always switch your font size to use viewport units
Aoi
Aoi3mo ago
You should avoid using viewport units for font sizes, it doesn't account for user preferences and accessories. https://youtu.be/wARbgs5Fmuw?si=hfdNLnbPwDqg_ez9
Kevin Powell
YouTube
Simple solutions to responsive typography
In this one, I look at two simple ways to make maintaining your site's typography much simpler! 🔗 Links ✅ The codepen: https://codepen.io/kevinpowell/pen/MWoYgrN ✅ More videos on responsive layouts: https://youtube.com/playlist?list=PL4-IK0AVhVjM6kuUoUexfmnD8vHtZkXdd ✅ My free course on responsive layouts: https://courses.kevinpowell.co/con...
peterpumkineaterr
thank you it did work the issue is that i don't know what is happening if i gave margin-top -5% or any other value instagram logo moves to up side and when i give margin-bottom: 2.5rem; it doesn't work https://codepen.io/samgon/pen/LYvBbrY updated codepen i noticed one thing that when i use justify content: center; it doesn't center horizentally as it should i have to give margin-right for it to center properly updated codepen again!! i tried fixing horizontal and vertical scroll but it's just going way above my head. also give me review if i'm doing it right or not ?
peterpumkineaterr
the issue.
WebDev
WebDev3mo ago
True, although so long as you have the proper 'guardrails' in place via clamp , min, etc, there isn't a problem. Plus in this case, we're talking about a logo/wordmark so not exactly a deal-breaker if its a bit smaller on some displays.
Aoi
Aoi3mo ago
Makes sense, mb
WebDev
WebDev3mo ago
@That's what she said! Gotta be honest I feel you're kinda overcomplicating this with the extra "Berry" and "Coming soon". You already have "Berry" presented on the page, vertically and you have a title that conveys the message that this content/site is coming soon, so I'm not sure why you feel you need to repeat both elements.
WebDev
WebDev3mo ago
Here's an updated/simplified version: https://codepen.io/badg0003/pen/QWPBOXX?editors=1100
peterpumkineaterr
It’s a design. You’ll like the full design. Let me check that out
WebDev
WebDev3mo ago
Haha gotcha - all good 🙂
peterpumkineaterr
what changes have you done i'm so confused now i can design better but i don't come html and css side often so i get this kinds of issues
WebDev
WebDev3mo ago
@That's what she said! I simplified the layout a bit - header, container and footer. Note my version has the elements that I thought were "extra" removed, so those would need to be added back if you choose to use them. If you are from a design background you may have an easier time using a tool like Webflow which more or less allows you to design w/o having to worry so much about the underlying CSS.
peterpumkineaterr
Html and css is free But i will check that out too. Is there any issue with code ? Where did i went wrong? I didn’t understand.
WebDev
WebDev3mo ago
I suggest you do a side-by-side compare of your pen and mine.
peterpumkineaterr
ok let me try that
peterpumkineaterr
https://codepen.io/samgon/pen/LYvBbrY UPDATED PEN @WebDev can you review it ? design is completed but it wasn't aligning so i kinda left it. can you just review and let me know what attributes should i use. and i'm super confused with width and height why is it automatically runs in width and height.
samee
CodePen
berry
...
peterpumkineaterr
it should look like this.
No description
peterpumkineaterr
UPDATE ::::
peterpumkineaterr
This is how it looks like in mobile
No description
peterpumkineaterr
updated pen : https://codepen.io/samgon/pen/LYvBbrY i just didn't understand where i'm going wrong