Question

My <marquee> tag is working perfectly in ie6 and ie7, but in ie8 it only shows first item.

How can I fix this?

Thanks in advance.

Was it helpful?

Solution

The marquee element is deprecated. The W3C recommends using <em> and <strong> as alternatives. If you need to mimic the behavior of the marquee, JavaScript has tools for doing that. This discussion has a working JavaScript example.

OTHER TIPS

As much as it pains me to link this: http://remysharp.com/demo/marquee.html

A jquery based marquee which will work across browsers.

As much as I loathe the element and the vast majority of its use-cases, CSS3 seems to have brought it back:

From what I understand Marquee is deprecated, and IE8 might be the version of IE that Microsoft decided to completely leave out support for that tag. Even if you do find a way to get it to work, I would suggest using another method to get the text to scroll (if that is what is needed) becuase you will probably have the same problem in the next version if IE.

EDIT: You can try java script...after a quick search I found this site that looks like it will generate the code for you. Also, since it's javascript it should now also work on Firefox, Chrome, etc. http://rumkin.com/tools/marquee/

I really feel the scroller mechanism is pre-Web 2.0. If your client wants it, well you may not have a lot of options but I would really try and do some kind of demo to highlight that there are better ways and it would not cause any instability to the site if implemented correctly.

I know many clients are cautious, but in my experience if you can show them a better alternative which is as stable or even more stable and at a low cost (time and money) then they are willing to accept the new way more often than not.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top