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

cnitsch / 2013-06-03 21:39:49   

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?

thanks
Ian

Vaska A / 2013-06-04 00:14:26   

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...

cnitsch / 2013-06-04 00:42:38   

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;
  5.                 
  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;
  3.             
  4.                 $a .= "<div style='padding-top: {$top_pad};'>n";

This thread has been closed, thank you.