coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: bryanbrazil on May 08, 2006, 12:28:19 AM

Title: Center thumbnails in Scroller block with scroll direction set to Down
Post by: bryanbrazil on May 08, 2006, 12:28:19 AM
I've tried everything to modify pnCPG_block_scroller.htm so that images in the Scroller block are centered when scrolling vertically, but still haven't figured it out. You can see my implementation of the Scroller block on the right side of my page at www.bryanbrazil.com. Any suggestions?

Thanks!
Title: Re: Center thumbnails in Scroller block with scroll direction set to Down
Post by: casNuy on May 08, 2006, 09:11:59 PM
try changing the template pnCPG_sroller_block.htm into :

<!--[*  $Id: pnCPG_scroller_block.htm Exp $  *]-->
<div style="text-align:center;">
<!--[if $width eq 0]-->
<MARQUEE BEHAVIOR=scroll align=center  DIRECTION=<!--[$dir]--> HEIGHT=<!--[$height]--> SCROLLAMOUNT=<!--[$amount1]--> SCROLLDELAY=<!--[$delay]-->  TRUESPEED onmouseover=this.stop() onmouseout=this.start() >
<!--[else]-->
<MARQUEE BEHAVIOR=scroll align=center  DIRECTION=<!--[$dir]--> HEIGHT=<!--[$height]--> SCROLLAMOUNT=<!--[$amount1]--> SCROLLDELAY=<!--[$delay]--> SCROLLWIDTH=<!--[$width]--> TRUESPEED onmouseover=this.stop() onmouseout=this.start() >
<!--[/if]-->
<!--[section name="items" loop=$items]-->
<center>
<A HREF="<!--[$items[items].url]-->"><IMG SRC="<!--[$items[items].picture]-->" border=0 title="<!--[$items[items].title]-->"></A>
<!--[$content1]-->
</center>
<!--[/section]-->
</marquee>
</div>


Cas
Title: Re: Center thumbnails in Scroller block with scroll direction set to Down
Post by: bryanbrazil on May 09, 2006, 04:10:32 AM
Problem solved! I didn't even think of using a <center> tag. I was trying to add align="center" to the <a>  and <img> tags.

Thanks Cas!