Display Image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Display Image

Please how can i display image on my page using css. I tried using the postimage procedure, but it was unsuccessful

21st Aug 2018, 8:22 PM
Hadiza
Hadiza - avatar
12 Answers
+ 4
Your tags read Html
22nd Aug 2018, 4:34 PM
Dlite
Dlite - avatar
+ 1
<img src="path/to/image.png" alt=" " />
21st Aug 2018, 8:23 PM
Dlite
Dlite - avatar
+ 1
So what else are you talking about?
22nd Aug 2018, 4:54 PM
Dlite
Dlite - avatar
+ 1
If you need a background-image for any tag, you could just use the below example 👇 .tag{ background-image:src(" path/to/image.png"); }
22nd Aug 2018, 4:57 PM
Dlite
Dlite - avatar
+ 1
Hadiza Do you have the direct url of the image?
22nd Aug 2018, 5:05 PM
Dlite
Dlite - avatar
+ 1
So i tried the method you specified above but there still was no display. I even tried dropbox. How do you post yours please?
24th Aug 2018, 6:27 PM
Hadiza
Hadiza - avatar
0
But this is HTML
22nd Aug 2018, 4:31 PM
Hadiza
Hadiza - avatar
0
But this is HTML
22nd Aug 2018, 4:32 PM
Hadiza
Hadiza - avatar
0
But this is HTML
22nd Aug 2018, 4:50 PM
Hadiza
Hadiza - avatar
0
Sorry i was talking about css (external css) that’s why my tag read html
22nd Aug 2018, 4:55 PM
Hadiza
Hadiza - avatar
0
I uploaded the image on postimage but it doesn’t display when i run
22nd Aug 2018, 4:56 PM
Hadiza
Hadiza - avatar
0
Thank you very much
22nd Aug 2018, 5:05 PM
Hadiza
Hadiza - avatar