I want to make my Image on the most right of the page, I try to modify with position: absolute
and right: 0
.
I also try to make parent position to relative, and image position to absolute, but why it doesn't work?
here's in my jsx file
<div className={styles.images}>
<Image
src="/cloud.svg"
alt="Picture of the author"
layout="fill"
className={styles.cloud}
/>
<Image
src="/kuil.svg"
alt="Picture of the author"
height={200}
width={600}
layout="intrinsic"
className={styles.building}
/>
</div>
Also in my css file.
.images {
position: relative;
margin: 90px auto 0 auto;
}
.building {
position: absolute;
top: 0;
right: 0 !important;
bottom: 0 !important;
}