Index + Exhibit


Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.3 on January 15, 2017.

visual index grid, why isn't there a left/center?


Indexhibit version: 2.0
Thread is not resolved.

4 year(s) ago
Permalink Post

Hi everyone,

I'm trying to wrap my head around this one.
why isn't there an option (in Visual Index) for the images to align to left edge and center vertically?

I have my thumbnails shape set to "natural" and would like the left edge of the thumbnail to align with the body text but also center vertically (because it looks cleaner).
right now it is indenting right, by 10px

my images are not square. they vary between landscape and portrait shapes.

to use an example...
is there anyway to set negative padding on the "center/center" grid?

i have three variants of Visual Index running on my site so that i can have different margins for exhibits using these various copies.

I would like one of these versions to be capable of aligning an image left, but also setting the valign to center.

is this possible?


Vaska A
4 year(s) ago
Permalink Post

It's certainly possible, but it doesn't exist in the current format. To be honest, I didn't want to add every option because it is already too many options.

Left/Top and Left/Bottom do what you want, as well. Personally, I think Left/Soft is the best one.

If you wanted to customize you could combine Left/Top with Center/Center (the centering part) and voila...

4 year(s) ago
Permalink Post

Is it this part Vaska?
from center/center
line 219 - 224

  1. $top_pad = (($OBJ->vars->exhibit['thumbs_shape'] == 0) || ($this->grid == 0)) ? "{$top_padding}px" : 0;
  2.                 //$top_pad = round($top_pad / 2) . 'px';
  3.                 $top_pad = ($OBJ->vars->exhibit['thumbs_shape'] == 0) ?
  4.                     round($top_pad / 2) . 'px' : 0;
  6.                 $a .= "<div style='padding-top: {$top_pad};'>n";

and then i replace copy it over this?
line 335 -338

  1.     $top_pad = ($OBJ->vars->exhibit['thumbs_shape'] == 0) ?
  2.                     round($top_pad / 2) . 'px' : 0;
  4.                 $a .= "<div style='padding-top: {$top_pad};'>n";


This thread has been closed, thank you.