The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Gallery plugin to center on mobile
I’ve spent some time trying to Firebug this and can’t get it to center. If I look at this gallery on iPhone portrait the thumbnails are left aligned. What selector needs to be targeted to center align them.
http://backcountrytrail.com/gallery/
Define a width on the ul and center it.
ul
.fg-thumbHolder { width: 175px; margin: 0 auto!important; }
I added this to line 1016 since it needs to be in a media query and it’s not taking.
@media only screen and ( max-width: 479px ) { ul.fg-thumbHolder { margin: 0 auto !important; width: 175px !important; } }