How can I set the displayed max width of an image ? The attached jpg shows a screen capture of the underlying code for the view page in my app; it shows style="max-width: 360px;". This is the value i wish to change for all images displayed.
BTW, I am not using thumbnails.
TD
How to change image display width?
How to change image display width?
- Attachments
-
- max_width.jpg (22.01 KiB) Viewed 251 times
(SOLVED) Re: How to change image display width?
The solution is to add the following code to the /hooks/footer-extras.php file. The reason i wanted to do this is because I could not use the thumbnails option in Appgini because of the way the existing website worked and the existing photos were fairly large, which required a lot of scrolling to view the entire page. After adding this code, the images are all of a size that doesn't take much to scroll the whole page. I post this here that it might help someone else.
TD
TD
Code: Select all
<script>
$j(".img-responsive").css('width','250px');
</script>