{"id":17962998,"date":"2024-08-19T20:46:33","date_gmt":"2024-08-19T20:46:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/force-max-height\/"},"modified":"2024-08-19T21:01:01","modified_gmt":"2024-08-19T21:01:01","slug":"force-max-height","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/force-max-height\/","title":{"rendered":"Force max height"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most of the images in my gallery are all different dimensions. How can I force each image to have a max-height of 100% to fill the gallery container with object-fit: cover<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can you assist with letting me know the correct selectors as I am having issues finding it?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many thanks<\/p>\n","protected":false},"template":"","class_list":["post-17962998","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17962998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17962998\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17962998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}