Results 1 to 2 of 2

Thread: Script: Pausing up-down Scroller (trying to modify content)

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script: Pausing up-down Scroller (trying to modify content)

    1) Script Title: Script: Pausing up-down Scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

    3) Describe problem: I am trying to change the colour of the font to either #ffcc33 (gold) or white and possibly the font style to verdana/trebuchet, in addition to centering it over the middle of my web page.

    I've looked back over the code they have given and can't see any clues as i tried: text: #ffcc33, font: #ffcc33 etc etc.

    can you help pls?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For the first two, add this to your stylesheet:

    Code:
    .innerDiv, .innerDiv * {
    	font-family: verdana, trebuchet, sans-serif;
    	color: #fc3;
    }
    Centering something over your page is a bit vague. However, to center a scroller, give it margin: 0 auto;, ex:

    Code:
    #pscroller1{
    width: 200px;
    height: 100px;
    border: 1px solid black;
    padding: 5px;
    background-color: lightyellow;
    margin: 0 auto;
    }
    In IE this requires either an HTML 5 DOCTYPE or a valid URL DOCTYPE and an explicit width (like the width: 200px; in the above).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •