backgroundImage react
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'
}}style={{backgroundImage: `url(${pencil})`}}import React from 'react';
import car from './images/car.png'
function App() {
return (
<div styles={{ backgroundImage:`url(${car})` }}> <h1>This is red car</h1>
</div>
);
}
export default App;
Also in JavaScript:
- how to do bubble sort in javascript
- keyup function in jquery
- JavaScript banner
- angular usehash not working
- if member has role discord.js
- javascript window resize event
- node js version
- registeing components in vue
- javascript fill circle with color
- go back doesnt load javascript safari
- number pyramid in javascript
- https request node.js output incomplete
- mask date of birth/ dob in javascript
- redux acions
- how to print numbers in javascript
- javascript detect square number
- python object to json
- document.title you clicked count times
- jquery continue in loop each
- in select option how to make one default in angular
- paypal cordova can not open popup window - blocked
- Function to convert an Array to an Associative array
- How to remove object from array of objects using JavaScript geeksforgeeks
- convert csv to json python