0

how do you set a background image

I cant figure out how to set a background image the lesson didn't make sense can you teach it to me in a easier way

25th Jul 2019, 7:44 PM
Tank The Coder
Tank The Coder - avatar
4 odpowiedzi
+ 5
Daniel 【#ChildOfGod】 I think you're misunderstanding. Tank The Coder asked for background Image not image. I think there's a difference I'm I right?
25th Jul 2019, 11:06 PM
Jella
Jella - avatar
+ 4
Change the url to that of the pic you want. <!-- Html --> <div class="team-thumb" style=" height:13rem;width:13rem;border-radius:50%;background-image:url('https://api.sololearn.com/Uploads/Avatars/11320609.jpg'); background-repeat:no-repeat ; " > </div> //CSS div { height:13rem;width:13rem; border-radius:50%; background-image:url("https://api.sololearn.com/Uploads/Avatars/11320609.jpg"); background-repeat: no-repeat ; }
25th Jul 2019, 10:26 PM
Jella
Jella - avatar
+ 3
FOR HTML: <img href="xxxxxx"> for link <Img src="xxxxxx"> for source for example something's from your computer library FOR CSS: url ("xxxxx"); for link
25th Jul 2019, 10:52 PM
KingDaniel2004
KingDaniel2004 - avatar
0
ok thank you
25th Jul 2019, 10:55 PM
Tank The Coder
Tank The Coder - avatar