+ 9

How to make image link for css?

I want to add photo through css so how can i make link for css

26th Feb 2020, 5:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
9 Respuestas
+ 4
.image { background-image:url(https://imageyouchose.com/images.png); }
26th Feb 2020, 5:16 AM
BroFar
BroFar - avatar
+ 3
Use imgur for images it's Best choice and use in css try this _ Background:url(image_link);
3rd Mar 2020, 5:00 AM
🇮🇳Abhay Pratap Singh🇮🇳
🇮🇳Abhay Pratap Singh🇮🇳 - avatar
+ 3
Thanks
3rd Mar 2020, 5:37 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
If you just need the link for the photo, then I have a recommendation for a website to upload the photo and get a link. I think that https://postimages.org/ is a good website to do this. I've used this for every image on my phone that I've used for coding so far. I also recommend that you don't add the image straight from CSS. With that, it adds a background image. Because of this, I recommend using HTML for editing. Also, if you are on a computer an not on Sololearn while coding, as long as you have the file and image in the same folder, you can just type in the name of the image file. I hope this helps! Have fun coding! ʕっ•ᴥ•ʔっ(◕ᴗ◕✿)
26th Feb 2020, 5:13 AM
Aiki
Aiki - avatar
+ 1
You need to wrap an img tag with an anchor tag. In HTML. Not CSS
26th Feb 2020, 5:12 AM
Maxx
Maxx - avatar
+ 1
Thanku soooo muchhh sir
26th Feb 2020, 5:17 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
💫Preet Raghuvanshi💫 bro ( ≧Д≦) I feel honored. Thanks.
26th Feb 2020, 5:18 AM
Aiki
Aiki - avatar
+ 1
Sir i posted one photo i seen many links which one should i copy
26th Feb 2020, 5:21 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Just wrap img tag within anchor tag like this : <a href="#"> <img src="......." alt="......"> </a>
27th Feb 2020, 8:08 PM
Mahmoud Anwar
Mahmoud Anwar - avatar