How to set different CSS style to different img


#1

HI,

I want to set different CSS style to different img.
How can i do it as all the image share the same tag


#2

Change thier tags. (duh :smiley: )


#3

HI,

FYI, If i change the Img ,for example Img_1, the image will not be loaded.
So does change the tag really work?


#4

@ariestotal, amanuel2 solution won't work. Do you know what classes and id's are yet? You can add a id to image:

<img id="idname" src="url">

then in css, to use id's, start with a pound/number sign before the css selector:

#idname { some css code }

id are unique (you can use every idname only once on a page. You can also use classes (you can have multiply images with the same class:

<img class="classname" src="url">

and then use a dot before the css selector:

.classname { some css code }

#5

HI STETIM 94,

No, i haven't reach there yet.
Thanks for the helps>
:smile:
really appreciated that


#6

you will get this later on, where this is explained better. Yes, i could do an extensive answer, but that would spoil it a bit. If you get the hang of it already, feel free to use it