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
4 Antworten
+ 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?
+ 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 ;
}
+ 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
0
ok thank you