Learn, grow and help others with BBBootstrap
Contribute us with some awesome cool snippets using HTML,CSS,JAVASCRIPT and BOOTSTRAP
setting the next/image to 100% height and width with the following code.
<div style={{width: '100%', height: '100%', position: 'relative'}}> <Image alt='bbbootstrap.com' layout='fill' src='image-url' objectFit='contain' /> </div>
It can also be achieved
import Image from 'next/image'; const App = () =>{ return ( <Image alt="BBBootstrap.com" src="image-url" layout="fill" objectFit="cover" /> ); } export default App;