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*/
2 Answers
+ 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;
}
đ