Html img problem | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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