Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JackT06

macrumors 6502
Original poster
Jul 24, 2009
293
0
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!:)
 

Attachments

  • hampshiredoeyouthforum.uphero.com screen capture 2011-3-19-23-8-18.png
    hampshiredoeyouthforum.uphero.com screen capture 2011-3-19-23-8-18.png
    3.2 KB · Views: 261
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.
 
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.

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:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.