Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML stop marquee tag

Tags:

html

css

marquee

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!

like image 255
Akshansh Jain Avatar asked Feb 05 '26 20:02

Akshansh Jain


1 Answers

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>
like image 160
Pritish Vaidya Avatar answered Feb 12 '26 17:02

Pritish Vaidya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!