marquee should start from the middle?

user915210 picture user915210 · Mar 27, 2012 · Viewed 25.9k times · Source

I am using marquee to show the dashboard on my site, the marquee tag is written as:

<marquee loop="infinite" behavior="scroll" direction="up" scrollamount="1" height="500" width="500">
    .............
    .............
</marquee>

As you can see the marquee contents are scrolling from down to up.

Problem

When I hit the URL from browser, the place where marquee is used look empty and then the marquee content start coming from the bottom.

What I want is the marquee content should start from the middle rather than from the bottom.

Answer

Mr Lister picture Mr Lister · Mar 27, 2012

The <marquee> element does not have this functionality. There are some proposals to create marquees with CSS3, but those are far from definitive.

So the only real alternative is to write one in javascript.