2013-11-05, 21:27:02
Hello,
I've managed to make this gallery almost 100% responsive, all thou I have one problem: the image height.
And it is all in this one:
"plugin_cycle.php" file, css part of it ->
#gallery-cycle-<?php echo $id; ?>.gallery-cycle .gallery-container {
width: <?php echo $tp == 'left' || $tp == 'right' ? $w + $tw : $w; ?>px;
height: <?php echo $tp == 'top' || $tp == 'bottom' ? $h + $tw : $h; ?>px;
}
Ideal would be to replace "height' with 'auto' or ' 100%'. But it's not working in the browser - height would become 0px and the image would be not visible.
So my question would be: is there a way to change this part of PHP to keep responsive height ?
Thanx
I've managed to make this gallery almost 100% responsive, all thou I have one problem: the image height.
And it is all in this one:
"plugin_cycle.php" file, css part of it ->
#gallery-cycle-<?php echo $id; ?>.gallery-cycle .gallery-container {
width: <?php echo $tp == 'left' || $tp == 'right' ? $w + $tw : $w; ?>px;
height: <?php echo $tp == 'top' || $tp == 'bottom' ? $h + $tw : $h; ?>px;
}
Ideal would be to replace "height' with 'auto' or ' 100%'. But it's not working in the browser - height would become 0px and the image would be not visible.
So my question would be: is there a way to change this part of PHP to keep responsive height ?
Thanx