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
peterpumkineaterrOP8mo ago
image is from figma and video is an preview of the current code. and the code i started it from mobile first css
WebDev
WebDev8mo 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
WebDev8mo 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
Aoi8mo 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
peterpumkineaterrOP8mo ago
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
peterpumkineaterrOP8mo ago
the issue.
WebDev
WebDev8mo 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
Aoi8mo ago
Makes sense, mb
WebDev
WebDev8mo 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
WebDev8mo ago
Here's an updated/simplified version: https://codepen.io/badg0003/pen/QWPBOXX?editors=1100
peterpumkineaterr
peterpumkineaterrOP8mo ago
It’s a design. You’ll like the full design. Let me check that out
WebDev
WebDev8mo ago
Haha gotcha - all good 🙂
peterpumkineaterr
peterpumkineaterrOP8mo ago
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
WebDev8mo 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
peterpumkineaterrOP8mo ago
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
WebDev8mo ago
I suggest you do a side-by-side compare of your pen and mine.
peterpumkineaterr
peterpumkineaterrOP8mo ago
ok let me try that
peterpumkineaterr
peterpumkineaterrOP8mo ago
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
peterpumkineaterrOP8mo ago
it should look like this.
No description
peterpumkineaterr
peterpumkineaterrOP8mo ago
UPDATE ::::
peterpumkineaterr
peterpumkineaterrOP8mo ago
peterpumkineaterr
peterpumkineaterrOP8mo ago
This is how it looks like in mobile
No description
peterpumkineaterr
peterpumkineaterrOP8mo ago
updated pen : https://codepen.io/samgon/pen/LYvBbrY i just didn't understand where i'm going wrong
Want results from more Discord servers?
Add your server