-3

So here the thing, I got something like this:

blablabla
lots of code that change from time to time
blablabla

<center>
  <a href="somewhere">
     <img src="someUNIQUEaddress.gif">
  </a>
</center>

blablabla
lots of code that change from time to time
blablabla

Now you see, I don't have any access to HTML and I can't use JS. I need somehow to target this, I know there's a way to target something like this:

[class="someUNIQUEthing"]

So perhaps there's a way like that to target the src of the img?

EDIT

I did it simply using this:

[src="myuniquething"]
Community
  • 1
  • 1

2 Answers2

2

You are searching for a equivalent to [class='someUNIQUEthing']. You can use the following:

img[src='someUNIQUEaddress.gif'] {
  border:2px solid red;
}
<img src="someUNIQUEaddress.gif">
Sebastian Brosch
  • 42,106
  • 15
  • 72
  • 87
0

you can achieve this in two ways, as follow, in my code u can compare with any image extension like .jpg, .gif, .png etc

img[src='someUNIQUEaddress.gif'] {
 border:2px solid red;
}

[src$=".gif"] {
   border:2px solid yellow;
}
<img src="someUNIQUEaddress.gif">

<img src="sample.gif">
dippas
  • 58,591
  • 15
  • 114
  • 126
Ganesh Putta
  • 2,622
  • 2
  • 19
  • 26