Scroll not working with DIV ID
Answered
Blue swimming crab posted this in #help-forum
Original message was deleted.
27 Replies
Blue swimming crab
It also happens in mobilephones when they try to access the vote section thru the menu
<Link
href="/#vote-section"
className="font-inter rounded-lg lg:px-6 lg:py-4 lg:hover:text-rose-800"
>
Vote
</Link>
<span id="vote-section" className="relative flex justify-center">
<div className="absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-transparent bg-gradient-to-r from-transparent via-gray-500 to-transparent opacity-75"></div>
<div className="relative z-10 bg-zinc-900 px-6"> Vote</div>
</span>
@Blue swimming crab <Link
href="/#vote-section"
className="font-inter rounded-lg lg:px-6 lg:py-4 lg:hover:text-rose-800"
>
Vote
</Link>
try the normal
<a>
tag for same page linking@Yi Lon Ma try the normal `<a>` tag for same page linking
Blue swimming crab
it says this
@Blue swimming crab it says this
Blue swimming crab
@Blue swimming crab Click to see attachment
remove the
/
from itand I think this is happening due to your images loading later
causing layout shift
are you using the
Image
tag?@Yi Lon Ma remove the `/` from it
Blue swimming crab
But how are users gonna access it from other pages?
@Yi Lon Ma are you using the `Image` tag?
Blue swimming crab
yeah let me double check
yeah I am using <Image> for all of them
@Blue swimming crab But how are users gonna access it from other pages?
yeah in that case you need that
@Blue swimming crab yeah I am using <Image> for all of them
it is weird that using Image is causing layout shift
Blue swimming crab
let me send u another video
are you using proper dimensions?
Answer
@Yi Lon Ma are you using proper dimensions?
Blue swimming crab
Like for the images?
yes
@Yi Lon Ma yes
Blue swimming crab
Let me check that
Original message was deleted
Asian black bear
@Blue swimming crab Please don't delete your original question as this thread has now lost context. In the future attribute helpers as described in the embed using a marked solution.
@Asian black bear <@522980853320515594> Please don't delete your original question as this thread has now lost context. In the future attribute helpers as described in the embed using a marked solution.
Blue swimming crab
yeah that was mb i was trying to delete the videos