PDA

View Full Version : Resolved Centering Fading Ticker Tape



BorderTerroir
03-29-2009, 07:02 AM
1) Script Title:
Fading Ticker Tape Script

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex2/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? :confused:
http://www.hillamhotdogs.co.uk/TestArea/TestPage.htm

Thanks in advance.

Snookerman
03-29-2009, 07:24 AM
Add this to your CSS code:

#tickertape {
height:20px;
position:relative;
width:400px;
margin: 0 auto;
}

Good luck!

BorderTerroir
03-29-2009, 10:52 AM
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

Snookerman
03-29-2009, 10:54 AM
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:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Good luck!

BorderTerroir
03-29-2009, 04:52 PM
Hurrah - Nearly there. :)

How do I center the text?

Nile
03-29-2009, 04:53 PM
text-align: center;

In the css.

BorderTerroir
03-30-2009, 06:17 AM
Hurrah it works! :D

Many many thanks.

Snookerman
03-30-2009, 07:09 AM
You're welcome, glad to help!
You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif 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!