HTML Scroll Marquee
It is a by default property. It is used to scroll the text from right to left, and restarts at the right side of the marquee when it is reached to the end of left side. After the completion of loop text disappears.
- <marquee width="100%" behavior="scroll" bgcolor="pink">
- This is an example of a scroll marquee...
- </marquee>
Direction in HTML marquee
This is used to change the direction of scrolling text. Let's take an example of marquee scrolling to the right. The direction can be left, right, up and down.
- <marquee width="100%" direction="right">
- This is an example of a right direction marquee...
- </marquee>
Nested marquee example
- <marquee width="400px" height="100px" behavior="alternate" style="border:2px solid red">
- <marquee behavior="alternate">
- Nested marquee...
- </marquee>
- </marquee>
No comments:
Post a Comment