DHTML/HTML

Advertisement


Question
I use
<marquee behavior=”scroll” direction=”Right”</marquee> it works.

And even if I type   direction="Left" it will still come in from the Right.

Can you help?

Answer
Bob,

Documentation for marquee direction:

"Sets the direction of the scrolling within the marquee. Possible values are left, right, up and down. If no value is specified, the default value is left."

So, the default with no direction specified:


<marquee>This text will scroll from right to left</marquee>


To make it move from leflt to right:


<marquee direction="right">This text will scroll from left to right</marquee>


You should keep your attribute values lowercase. Give this code a shot.  

DHTML

All Answers


Answers by Expert:


Ask Experts

Volunteer


Andrew Hoffman

Expertise

Ask me about JavaScript, CSS, HTML5/XHTML, or PHP. Chances are I'll be able to help you. I know the economy is in the tank, but if you like my answer, please consider donating a few bucks. It's like tipping your barista, if your barista served fresh code instead of coffee.

Experience

I started doing this when boy bands were still cool.

Education/Credentials
I read a lot of nerdy books to get here.

©2016 About.com. All rights reserved.