How do you replace the <marquee> tag with CSS? I'm redoing a site for a friend, and he has a marquee on the site.You simply beat him round the head until he a) see's sense or b) you kill him.Unfortunately, that won't prove my point. What I'm trying to get him to see is that it is possible to do his site with something OTHER than Yahoo Pagebuilder.You shouldn't use <marquee> for accessibility or X/HTML validity reasons.
<!-- m --><a class="postlink" href="http://www.w3.org/TR/WAI-WEBCONTENT/#q33">http://www.w3.org/TR/WAI-WEBCONTENT/#q33</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.google.com/search?q=accessibility+marquee">http://www.google.com/search?q=accessibility+marquee</a><!-- m -->
If you must have scrolling text, use JavaScript and provide a method to stop the scrolling.Make an animated graphic that scrolls text like a marquee, then use the alt attribute in the image tag to make it accessible to non-graphic browsers (and also the longdesc attribute if needed).
<!-- m --><a class="postlink" href="http://www.w3.org/TR/WAI-WEBCONTENT/#q33">http://www.w3.org/TR/WAI-WEBCONTENT/#q33</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.google.com/search?q=accessibility+marquee">http://www.google.com/search?q=accessibility+marquee</a><!-- m -->
If you must have scrolling text, use JavaScript and provide a method to stop the scrolling.Make an animated graphic that scrolls text like a marquee, then use the alt attribute in the image tag to make it accessible to non-graphic browsers (and also the longdesc attribute if needed).