+ 2

How to specify where a image come from?

How to specify where a image come from in CSS?

23rd Mar 2018, 3:33 PM
Philipp John
Philipp John - avatar
2 ответов
+ 3
Please elaborate your question. CSS cannot add images ? Unless, you're putting one in the background. You can add images in HTML using the <img> tag and its url.
23rd Mar 2018, 4:38 PM
Aaron Stone
Aaron Stone - avatar
+ 1
HTML <div id="div">test</div> CSS #div { background-image: url('path-to-image'); }
23rd Mar 2018, 7:55 PM
Damyan Petkov
Damyan Petkov - avatar