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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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!