Docs    Instagram    Customizations

Vertically center Instagram caption on hover

To vertically center the Instagram caption text when hovering over a post, you can add the following JavaScript to your site. This can be done manually using a custom JavaScript plugin. For further information see our documentation here.

  var $self = $(this);
    'position' : 'absolute',
    'top' : ( $self.parent().height() - $self.height() ) / 2

Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?