Akshansh Jain Akshansh Jain - 1 month ago 19
CSS Question

HTML stop marquee tag

I wanted to know if there is a way of stopping the flow of images in marquee tag of html using only HTML/CSS.

<marquee><a href="#" style="font-size:24px"><img src="hp.jpg" width="134" height="202" style="float:left;padding-right:10px;" alt=""></a></marquee>


Several linked images like these are in between the marquee tags and I wanted to stop their flow preferably on mouse hover. If you think it's possible please tell me the solution.

Thanks in advance!

Answer

Here you go

Fiddle

<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();"><img src="hp.jpg" width="134" height="202" style="float:left;padding-right:10px;" alt="llsdasdada"></marquee>
Comments