This is only a problem in IE, it is centering the left edge of the inner (vmarquee) division. Add (red):
Code:
<style type="text/css">
#marqueecontainer{
position: relative;
width: 150px; /*marquee width */
height: 200px; /*marquee height */
background-color: sh_bk6.gif; /* this should be a color, not an image */
overflow: hidden;
border: 0px solid orange;
padding: 0px;
padding-left: 0px;
text-align:left;
}
</style>
If after that, you think the text in the marquee needs centering:
Code:
#vmarquee {
text-align:center;
}
More about background-color: sh_bk6.gif; /* this should be a color, not an image */:
If you want a background-image do:
Code:
background-image:url(sh_bk6.gif);
If you do, or do end up putting a color value there, set a foreground color:
Notes: This is a somewhat older script and doesn't work in some browsers that it could. Here is a mod that can make more than one scroller per page and that works in more browsers:
http://home.comcast.net/~jscheuer1/s...oss_marq_h.htm
Bookmarks