I have a problem with the images I loaded on the website of my journal when they are viewed on displays with different resolution. Here’s an example:
My laptop (Win 10)
My colleague’s PC (Win XP)
My smartphone (Android)
Any ideas how to fix it?
Usually to make images responsive with Bootstrap you can use additional class
img-fluid. Or with CSS:
In case of adding custom code in CSS child-theme can be used: PKP Theming Guide
Or you just can upload custom CSS through Admin Dashboard
Thank you very much, I changed the code and it really worked great.
As I am also maintaining a website for a conference (http://etno.pmf.ukim.mk/ocs/index.php/school/school), I’d like to ask another question about the images and the different resolutions. The same problem appears, but when I change the code according to the instructions, it doesn’t solve it. I think it’s because the OCS version is older - 220.127.116.11. Any ideas how to fix the size of the images?
It’s hard to say. You have tried to apply changes in CSS and they don’t work? Maybe some styles there are already applied. You can try to make them more specific or add
!important to the property, e.g.
max-width: 100% !important; What does !important mean in CSS? - Stack Overflow
I tried with both codes, but it still doesn’t work.