Hey guys, so I am fairly certain I know the answer here but is there way to center gallery images, instead of them all aligning to the left? I would like the 3 images in the gallery above and below the stat block on this page to center. I know how to manually make it happen using linked images, and colums but wanted to know if there was a way to do it with the widget. Thanks in advance
Edit - this applies to regular templates, some of the epic ones do it automatically
Edit - this applies to regular templates, some of the epic ones do it automatically
There is no way to do this with the gallery widget without custom CSS. However, you can do a not-bad job at it with a normal text widget and some fancy BBCode
The downside - the images won't open in a lightbox.
(Also if you plan to use my code, I recommend reuploading the images somewhere. I can see myself finding them in my gallery 12 months from now and saying to myself "Why do I have these?!" and deleting them.)
Code:
[center][url=https://imgur.com/pkwdixV][img]https://i.imgur.com/iZ9SPhD.jpg[/img][/url] [url=https://imgur.com/uuNzgXT][img]https://i.imgur.com/514rhph.jpg[/img][/url] [url=https://imgur.com/Xcw6DIx][img]https://i.imgur.com/DQdVm9N.jpg[/img][/url][/center]
The downside - the images won't open in a lightbox.
(Also if you plan to use my code, I recommend reuploading the images somewhere. I can see myself finding them in my gallery 12 months from now and saying to myself "Why do I have these?!" and deleting them.)
Claine wrote:
There is no way to do this with the gallery widget without custom CSS. However, you can do a not-bad job at it with a normal text widget and some fancy BBCode
The downside - the images won't open in a lightbox.
(Also if you plan to use my code, I recommend reuploading the images somewhere. I can see myself finding them in my gallery 12 months from now and saying to myself "Why do I have these?!" and deleting them.)
Code:
[center][url=https://imgur.com/pkwdixV][img]https://i.imgur.com/iZ9SPhD.jpg[/img][/url] [url=https://imgur.com/uuNzgXT][img]https://i.imgur.com/514rhph.jpg[/img][/url] [url=https://imgur.com/Xcw6DIx][img]https://i.imgur.com/DQdVm9N.jpg[/img][/url][/center]
The downside - the images won't open in a lightbox.
(Also if you plan to use my code, I recommend reuploading the images somewhere. I can see myself finding them in my gallery 12 months from now and saying to myself "Why do I have these?!" and deleting them.)
Thank you! I was pretty sure it wasn't able to be done but had to ask for curiosity's sake. Also, I had a good idea of how to do that- your codes clarified it thank again for helping me out.
Edit: I'll reupload those elsewhere now
You are on: Forums » Help » Centering a gallery
Moderators: Mina, Keke, Cass, Claine, Sanne, Dragonfire, Ilmarinen, Darth_Angelus