try
.pdb-foto .img-field-wrap img{
height: 150px;
}
“pdb-foto” is a classname, not an ID, so you use the dot. No need for the “important”
That doesn’t work. The selector is an id. Here is the HTML code:
<td id="pdb-foto">
<input type="hidden" value="4194304" name="MAX_FILE_SIZE"></input>
<input type="hidden" value="xyz.jpg" name="foto"></input>
<div class="pdb-upload">
<span class="image-field-wrap basename pdb-image image-field-wrap">
<img src="http: ...."></img>
<span class="image-filename"></span>
</span>
<input type="file" value="xyz.jpg" name="foto"></input>
<span class="file-delete"></span>
</div>
<span class="helptext"></span>
</td>
I tried various ways. I do not know, how can I select the class object “image-field-wrap”. The image size should be valid only for this participants site and not for all images.
Ah, different context…yes it’s an id in that form.
So can you see what rule might be overriding yours? It’s working fine in my tests.
I found no other rule that overrides this class.
I have no idea what’s the reason is.
Are you using the browser developer tools to inspect the element? That will show you the currently active rule, and from that you can see how to override it.
I use the Firefox object inspector. I don’t find the overriding class. I know, it’s no clean solution, but I will change the value in participants-database.css. And next time I have to remember me, to do this again.
It’s also possible that I can find the solution. For your support, help and the plugin I am very thankful.
Thank you very much.
Glad you found a way to make it work…you just have to remember to re-instate your changes when you upgrade.
I have an odd problem:
if you look at this page with chrome, you will find the photos long and tall.
http://arf.iyte.edu.tr/?page_id=184&lang=tr
..but firefox shows them fine..
so I added
.image-field-wrap img {
height: 150px;
width: 400px;
}
..to participants-database.css, and chrome shows the pictures fine, but firefox shows them verry fat..
what can I do?
When resizing images, it’s best to only set one dimension of the image, then set the other dimension to “auto”
.image-field-wrap img {
height: auto;
width: 400px;
}