Results 1 to 8 of 8

Thread: Centering Fading Ticker Tape

  1. #1
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default Centering Fading Ticker Tape

    1) Script Title:
    Fading Ticker Tape Script

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

    3) Describe problem:
    I would like to center the script so it is in line with the asterisks.
    How do I do it?
    http://www.hillamhotdogs.co.uk/TestArea/TestPage.htm

    Thanks in advance.
    Last edited by BorderTerroir; 03-30-2009 at 10:41 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Add this to your CSS code:
    Code:
    #tickertape {
    height:20px;
    position:relative;
    width:400px;
    margin: 0 auto;
    }
    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Sorry

    Done that it hasn't worked.


    #tickertape{
    position:relative;
    layer-background-color:black;
    width:400px;
    height:20px;
    margin: 0 auto;
    }

    http://www.hillamhotdogs.co.uk/TestArea/TestPage.htm

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    It doesn't work in IE (and maybe other browsers) because you don't have a doctype. Add this to the top of the document, before the <html> tag:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  5. #5
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Hurrah - Nearly there.

    How do I center the text?

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    text-align: center;
    In the css.
    Jeremy | jfein.net

  7. #7
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Hurrah it works!

    Many many thanks.

  8. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title.
    This will let other users know the problem has been solved.

    Good luck with your site!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  9. The Following User Says Thank You to Snookerman For This Useful Post:

    BorderTerroir (03-31-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
  •