Marquee and nonMarquee on same line..

Discussion in 'Web Design and Development' started by JackT06, Mar 19, 2011.

  1. JackT06 macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #1
    Hello,

    My aim is to have a bit of text that doesnt move, with a marquee that 'runs' into it.
    What i want is to have 'Latest News:' and then 'scrolling text'.

    The code i have is:
    Code:
    <p>Latest News:<marquee behavior="alternate" direction="left"><a href="Map.html"> Click here to find your local centre</a></marquee></p>
    thanks!:)
     

    Attached Files:

  2. Dunmail macrumors regular

    Joined:
    Mar 27, 2009
    Location:
    Skipton, UK
    #2
    OK, first things first - the marquee tag is deprecated so there's no guarantee that it will work as expected in future (though it's likely to for backwards compatibility reasons). Is there any other way that you might present this info - an RSS feed perhaps?

    By default the marquee takes 100% of the width of the container so in your CSS for the tag put something like:

    Code:
    #myMarquee{
      width: 80%;
    }
    
    One recommendation is not to have links or critical info in the scrolling text as it's hard to get the click just right.
     
  3. JackT06 thread starter macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #3
    Thanks!:) I have just made an RSS file so it's easier, now i just need to find a way to display it on my website:)
     

Share This Page