How to stop a marquee automatically at a specific position?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to stop a marquee automatically at a specific position??

using marquee tag in HTML the included content moves as per the set directions. what CSS code may be used to stop the marquee at the specific position automatically??

29th Sep 2017, 9:14 AM
Raghav Goyal
Raghav Goyal - avatar
1 Answer
+ 5
HTML: <marquee behavior="slide" direction="right" loop="1"> a moving text </marquee> CSS: marquee{ width: 80%; } //use the width to specify where it should stop in css.
29th Sep 2017, 10:34 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar