Align slideshow block to top

Permalink
I am trying to set my slideshow block so all the pics within it align to the top of my div. At the moment they are centred vertically by default so the less high pics aren't aligning to the top but to the middle.

I've copied my block to the first level /block folder. But is there a piece of javascript or css I can edit to make this happen.

chassa2556
 
chassa2556 replied on at Permalink Reply
chassa2556
Can't seem to work this one out. Do I edit the CSS or what. Nothing I do seems to work. I have control of the straight forward images but slideshow block doesn't want to play. I can only assume I have to fiddle with the javascript which I was hoping to avoid!
matthewhawker replied on at Permalink Reply
Bit of an old thread this but I thought I'd post the solution that worked for me. In your blocks/slideshow/view.php file comment out the lines that are centering the images:

//center images
//      for(var i=0;i<this.imgInfos.length;i++){ 
//         if( this.imgInfos[i].imgHeight < maxHeight){
//            var t=((maxHeight - this.imgInfos
//[i].imgHeight)/2);
//            this.imgEls[i].css('top',t);
//         }
//      }


Im using 5.4.2.2