View Full Version : Needs to be centered
kjyoung29
01-12-2010, 07:06 PM
1) Script Title: Pausing Up-Down Scroller
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
3) Describe problem: How can I make this scroller appear in the center of the page instead of the left hand side?
Thanks so much!:)
jscheuer1
01-13-2010, 09:02 AM
In this section (from the demo page) add the highlighted for whichever scroller(s) you want centered:
<style type="text/css">
/*Example CSS for the two demo scrollers*/
#pscroller1{
width: 200px;
height: 100px;
border: 1px solid black;
padding: 5px;
background-color: lightyellow;
margin: auto;
}
#pscroller2{
width: 350px;
height: 20px;
border: 1px solid black;
padding: 3px;
margin: auto;
}
#pscroller2 a{
text-decoration: none;
}
.someclass{ //class to apply to your scroller(s) if desired
}
</style>
Note: In IE this requires a DOCTYPE that will force IE into standards mode, like:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
or:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
There are others. If you want more help with DOCTYPEs and/or how to use them, let me know, and if you want help with that or more help on this in general:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.