Center thumbnails in Scroller block with scroll direction set to Down Center thumbnails in Scroller block with scroll direction set to Down
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Center thumbnails in Scroller block with scroll direction set to Down

Started by bryanbrazil, May 08, 2006, 12:28:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bryanbrazil

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!

casNuy

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

bryanbrazil

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!