skip to Main Content

Css – how can i set the image into a certain size box appear properly

I have written code like this :- import React from 'react' function OurCourse() { return ( <div className='w-full '> <div className='w-full h-[390px]' style={{ backgroundImage:'url(https://images.unsplash.com/photo-1532012197267-da84d127e765?ixlib=rb- 4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=387&q=80)', backgroundSize:'contain', backgroundRepeat:'no-repeat', }}> </div> </div> ) } export default OurCourse I want to set this…

VIEW QUESTION
Back To Top
Search