I couldn’t believe a google search didn’t already turn up the answer for this — it’s crazy that you can’t just vertically-center the images in a wordpress simple image gallery. After much faffing with سی ایس ایس مجھے ایک آسان سا جواب ملا
By default wordpress image gallerys are given a class ‘gallery’ and all that was needed was to apply some flexbox سی ایس ایس to this gallery. For older browsers that don’t support flexbox they will just fall back to the non vertically centered gallery which isn’t the end of the world.
1 2 3 4 5 6 | .gallery { display: flex; flex-flow: wrap; align-items: center; } |
اور یہ بات ہے! It works with captions both on and off and doesn’t care how many columns or rows there are in your gallery.
ذیل میں تبصرہ کی طرف سے ہمیں اپنے خیالات بھیجیں کریں! آپ کے سبسکرائب کرنا چاہتے ہیں تو سب سے اوپر دائیں مینو پر لنک سبسکرائب استعمال کریں. آپ بھی ذیل سماجی روابط کا استعمال کرتے ہوئے کی طرف سے اپنے دوستوں کے ساتھ اس کا اشتراک کر سکتے ہیں. چیرس.
جواب چھوڑیں