Image Component
Unanswered
Pacific saury posted this in #help-forum
Pacific sauryOP
hello, i am trying to make my image component fill its parent div but it keeps filling the entire page
heres the parent div im using right now
<div className="w-1/2 rounded-xl mr-2">
also is the img component not meant to work with vercel hosting?
anyways thanks for your time anything helps
heres the parent div im using right now
<div className="w-1/2 rounded-xl mr-2">
also is the img component not meant to work with vercel hosting?
anyways thanks for your time anything helps
6 Replies
@Pacific saury hello, i am trying to make my image component fill its parent div but it keeps filling the entire page
heres the parent div im using right now
<div className="w-1/2 rounded-xl mr-2">
also is the img component not meant to work with vercel hosting?
anyways thanks for your time anything helps
Spectacled bear
add the
relative class to the parent. The Image component by default is positioned absolute@Spectacled bear add the `relative` class to the parent. The Image component by default is positioned `absolute`
Pacific sauryOP
thats all i have to do?
add relative to the parent div?
Spectacled bear
Yes that should be it for that specific issue.
@Spectacled bear Yes that should be it for that specific issue.
Pacific sauryOP
when i did this
it just smushed the image