0

css multiple image

i am unable to add the image with this css tag {background-image:url();} and if i use the html <img> tag .. i am having problem ....when i add multiple image and customize them with img{} tag in css ...all the codes work on all the inserted image ...i want to customize them differently any idea whats going on?? /* i am new here and learing online on sololearn...pls help me out*/

11th May 2020, 9:40 AM
saurav
saurav  - avatar
2 Réponses
+ 1
Then give different ids to all the images. <img src="your link" id="img1"> <img src="your link" id="img2"> Now in css file you can target each of the image tags with their ids For example, #img1{ Width:100px; } #img2{ Width:200px; } 😊
11th May 2020, 9:47 AM
Shreyansh
Shreyansh - avatar