By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,727 Members | 766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,727 IT Pros & Developers. It's quick & easy.

. FIREFOX nested-marquee bug

P: 5
The following HTML marquee code
works better in Microsoft Internet Explorer,
breaks (in more than one way) in Mozzila Firefox
Expand|Select|Wrap|Line Numbers
  1. <pre>------------------------------------------------- start HTML code ------------------------------
  3. <marquee>  
  4.                     <marquee width=100% direction=up>
  5.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  6. <CENTER><marquee  width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER  2 </marquee><br>
  7.            <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  8.                     </marquee>
  9. </marquee>
  11. <pre>
  17. <img src=>
  22. this is the llllllllllllllllllllllllllllast line
---------------------------------------------- end HTML code ------------------------------
Oct 17 '08 #1
Share this Question
Share on Google+
5 Replies

Expert 100+
P: 397
Document content is HTML Proprietary. Validate the markup.
Expand|Select|Wrap|Line Numbers
  1. Warning: <marquee> is not approved by W3C; Warning: missing <!DOCTYPE> declaration; Warning: nested emphasis <marquee>; Warning: trimming empty <marquee>
  2. <marquee>
  3. Warning: <marquee> is not approved by W3C; Warning: inserting implicit <marquee>; Warning: trimming empty <marquee>
  4. <marquee width=100% direction=up>
  5. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  6. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 1</marquee> <br>
  7. Warning: <marquee> is not approved by W3C; 
  8. Warning: missing </center>
  9. <CENTER><marquee width=60% BGCOLOR=BLUE STYLE="text-align:center">INNER 2 </marquee><br>
  10. Warning: <marquee> is not approved by W3C; Warning: missing </center>; Warning: <marquee> attribute "bgcolor" has invalid value "ORANGE"
  11. <CENTER><marquee width=50% BGCOLOR=ORANGE>INNER 3</marquee><br>
  12. Warning: discarding unexpected </marquee>
  13. </marquee>
  14. Warning: discarding unexpected </marquee>
  15. </marquee> 
Oct 17 '08 #2

Expert 5K+
P: 7,435
Well, first of all, the marquee tag is not part of the HTML standard and never has been so I'm not surprised if something doesn't work. iirc, this was a Microsoft invention from the 90s.
Oct 17 '08 #3

Expert 100+
P: 397
All versions of Internet Explorer need a doctype. The doctype they need for proprietary html "marquee" is:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "">
Validate to that doctype. Once that is done, or as close to it as you are able to achieve, bring it back if the proprietary html "marquee" does not work (render as intended) in compliant browsers -- among them -- Opera, Safari, and Firefox. Better yet: Remember, not to forget, that this is the year of our Lord 2008-- not 1998. And that, perhaps, you could explore contemporary means to achieve your goal. Or could you?
Oct 18 '08 #4

P: 5
Oct 18 '08 #5

Expert 5K+
P: 7,435
First, you are trying to use html. What you linked to is CSS.
Second, that is a Marquee module, not a marquee property, though there is a marquee-style.
Third, that is still in draft form and I'm not sure which browsers support it. Opera does so I think Safari would, too. IE definitely will not.
Oct 18 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.