Is there a way to make the next/image
element span from grid 1 through 8? It seems to work fine with the img
tag but not with next/image
.
.project {
display: grid;
margin-bottom: 4rem;
grid-template-columns: repeat(12, 1fr);
align-items: center;
}
.project-img {
grid-column: 1 / span 8;
grid-row: 1 / 1;
height: 30rem;
border-radius: 0.25rem;
box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}
<article className='project'>
<img
src={img}
className='project-img'
alt={title}
height='100%'
width='100%'
/>
<div className='project-info'>....</div>
</article>