Results 1 to 2 of 2

Thread: Translucent slideshow question

  1. #1
    Join Date
    Aug 2009
    Location
    Reno NV.
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Translucent slideshow question

    1) Script Title: Translucent Scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...centscroll.htm

    3) Describe problem: I'm kinda new to web design and I'm wanting to center the scroller on the page.

    Also, I want to change the font color to blue. I've tried a couple of thing with no luck.

    I apperaciate all help given to me!

    Richard
    Last edited by RichA; 08-06-2009 at 03:52 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    To center the scroller, try adding margin:auto inside the scroller's outermost DIV tag. Add the code in red to the existing script:

    Code:
    document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden; margin:auto; color:blue">
    The above also changes the font color to blue. Note that your page must contain a valid doctype at the very top for "margin: auto" to work:

    Code:
    <!DOCTYPE HTML>
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    RichA (08-08-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •