Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

give height to Image in nextjs

<div style='width:104px;height:104px;position:relative;'>
  <Image
    alt='Mountains'
    src='/mountains.jpg'
    layout='fill'
    objectFit='contain'
  />
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #give #height #Image #nextjs
ADD COMMENT
Topic
Name
9+1 =