Thursday, September 14, 2023
HomeCSScss - History Photo disappointing regardless of having right course as link

css – History Photo disappointing regardless of having right course as link


I’m attempting to include a history photo in my React Task, yet it’s disappointing up regardless of having right family member course as link.
Right here is my “App.js”:

 import "./ styles.css";.
export default feature Application() {
return (.
<< div className=" Application">
<> < h1>> Hello there All!<.
<< h2>> Please assist why the history photo isn't revealing right here ???<.
<.
);.
}

As well as complying with is the "styles.css":

 Application {
font-family: sans-serif;.
text-align: facility;.
history: aqua;.
elevation: 100vh;.
background-image: link(./ images/img -2. jpg);.
/ * background-image: link( https://pixabay.com/photos/dandelion-seeds-dew-dewdrops-445228/); */.
background-size: cover;.
background-repeat: no-repeat;.
}

And Also right here is the codesandbox instance: https://codesandbox.io/s/festive-scott-h28j42?file=/src/styles.css:0-294

RELATED ARTICLES

Most Popular

Recent Comments