PDA

View Full Version : Script: Pausing up-down Scroller (trying to modify content)



wolmersdotinfo
08-11-2010, 10:37 PM
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? :confused:

jscheuer1
08-12-2010, 01:51 AM
For the first two, add this to your stylesheet:


.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:


#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).