View Full Version : Can Mike's DHTML Scroller Be Centered?
StickPlay
12-11-2004, 01:56 PM
Script: Mike's DHTML Scroller
Location: http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm
I am failry new to HTML coding. I would like to have the "message/scroll box" that is generated in Mike's DHTML Scroller always centered on the page. I am not as concerned about the text that is scrolled, as I think this can be handled with a font tag attribute.
Is this possible?
cr3ative
12-11-2004, 02:36 PM
Make a 3 cell table, and place the scroller in the middle cell. Set the table so it adapts to page width (i.e 100% width) and it will always stay centered. Then set the table borders to 0 so you can't see them.
Still with me?
Merry Christmas
cr3ative
RomSkye
12-17-2004, 05:52 AM
How do you place the 'scroller' in the cell?
StickPlay
12-17-2004, 05:11 PM
Thanks for the tip on creating a cell.
I had some trouble and ended up going with two cells. I wanted to center the scroll under an image that was centered. Along with the centering parameters, the left cell's size had to be set to a percentage that put its right end just under the start of the image. In my case this was 25%. The second cell was then set to the remaining amount of percentage, 75% in my case.
Within Mike's DHTML Scroller code, I had to add the <center>. . .</center> font attributes to the text display statements and change the colors.
To get all this into the cell, I first created the table and typed the word "test" into the second cell. I then edited the HTML via NotePad and replaced the word "test" with the scroller tool code.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.