0

How can I separate two similar images in css,all my images adapts the same features

31st Jul 2022, 8:17 AM
Samuel Chukwu
Samuel Chukwu - avatar
3 Antworten
+ 1
Please post code so we can see why this is heppening. I can only think you set style like this: img { /* your style */ } if you just use tag as selector it will select every element and apply style to it, to style just some (use id) or group (use class)
31st Jul 2022, 8:58 AM
PanicS
PanicS - avatar
+ 1
Inorder to apply specific styling to an one image and different from another, you give each of the image, a unique ID, and style them using that ID Example: <img src=" " id="img1" /> <img src=" " id="img2" /> ---CSS--- #img1{ /* CSS Codes */ } #img2{ /* CSS Codes */ }
31st Jul 2022, 12:47 PM
umunyarwanda
umunyarwanda - avatar
0
How can I separate two similar images in css all my images adapts the same features
31st Jul 2022, 8:18 AM
Samuel Chukwu
Samuel Chukwu - avatar