Saturday, 19 September 2015

HTML Scroll Marquee

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.
  1. <marquee width="100%" behavior="scroll" bgcolor="pink">  
  2. This is an example of a scroll marquee...  
  3. </marquee>
  4. 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.
    1. <marquee width="100%" direction="right">  
    2.  This is an example of a right direction marquee...  
    3. </marquee>  

    Nested marquee example

    1. <marquee width="400px" height="100px" behavior="alternate" style="border:2px solid red">  
    2. <marquee behavior="alternate">  
    3. Nested marquee...  
    4. </marquee>  
    5. </marquee>  

No comments:

Post a Comment