0

Html img problem

expert coders I need assistance. I’m following a YouTube tutorial making a website with html and css. there’s a number of images I’m try to get show in html. the youtubers code uses style=“background-img(url)” but I have images on my pc. ??? I don’t think using url is they way to go cause the images aren’t sourced from a link on the internet

20th Aug 2020, 4:20 PM
Anthony Lanier
Anthony Lanier - avatar
4 Antworten
0
It's not background-img It's background-image=url("image.jpg");
20th Aug 2020, 4:32 PM
Divya Mohan
Divya Mohan - avatar
0
its. style=“background-img:url()” should i try = instead of :
20th Aug 2020, 4:41 PM
Anthony Lanier
Anthony Lanier - avatar
20th Aug 2020, 4:45 PM
Divya Mohan
Divya Mohan - avatar
0
i figured it out. sorry didnt give the whole line correctly. the code was css linked to html. <div class=“portfolio-img-background” style=“background-image: url(). in the style element i only typed style=“background-img: url(). plus i had to different folders named images so i changed the name. thank for your time.
20th Aug 2020, 5:11 PM
Anthony Lanier
Anthony Lanier - avatar