Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Centering gallery thumbnails in index


Recommended Posts

Site URL: https://griffinvothdp.com/film-photography

Hey everyone! I'm hoping someone can help me as I've looked through the forum and can't seem to find an answer. Basically, I'm using avenue and have my indexes set up so that my galleries will display in rows of three, however it bugs me that when I have 4 galleries on an index page, the 4th is left aligned. I was wondering if anyone knows how I can get that 4th gallery to center align so that it's more aesthetic. Thank you :)

Link to post
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Add to Design > Custom CSS @media screen and (min-width:641px) { a.project:nth-child(4) { left: 50%; transform: translateX(-50%) !important; margin-left: 0 !important; } }  

Add to Design > Custom CSS

@media screen and (min-width:641px) {
a.project:nth-child(4) {
    left: 50%;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
}
}

 

Link to post
11 hours ago, tuanphan said:

Add to Design > Custom CSS


@media screen and (min-width:641px) {
a.project:nth-child(4) {
    left: 50%;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
}
}

 

You are amazing! Is there a way so that this code can only affect my commercial and photography tab, as those are the only ones where I need the 4th gallery to center. Otheriwse it makes my 4th gallery in my narrative tab hide behind the 5th. Thanks 🙂

Link to post

You can add this to Commercial & Photography Pages Header

<style>
  @media screen and (min-width:641px) {
a.project:nth-child(4) {
    left: 50%;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
}
}
</style>

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...