Answers for "react background image inline"

6

Setting a background Image With React Inline Styles

backgroundImage: `url(${Background})`
Posted by: Guest on July-06-2020
16

react background image

style={{  
  backgroundImage: "url(" + "https://images.pexels.com/photos/34153/pexels-photo.jpg?auto=compress&cs=tinysrgb&h=350" + ")",
  backgroundPosition: 'center',
  backgroundSize: 'cover',
  backgroundRepeat: 'no-repeat'
}}
Posted by: Guest on April-12-2020

Code answers related to "react background image inline"

Code answers related to "Javascript"

Browse Popular Code Answers by Language