Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Moe Zilla vs Code

 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running Mozilla FireFox 0.9.1. It doesn't always (or ever?) show code blocks in monofont. Same pages look perfect in IE. One time it was wrong and refresh made it right. Yikes.

Looking at page source I saw a blockquote around the code, I suppose to indent it nicely. The blockquote specifies a font. The preformatted section inside the blockquote specifies a font size but not a font. I guess the pre section is picking up the font of the blockquote?

Lemme know if you cannot duplicate. I can send screen shots or something. Thanks!!
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't use Firefox, but I am running Mozilla 1.5 and 1.7 on various Linux machines, and the code sections render fine.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've observed this same problem from both Mozilla (1.4-1.7) and Firefox (0.6-0.9) on Windows (2000 Pro and XP Home). IE and Opera consistently use monofont when in [code] tags, but Mozilla and Firefox sometimes revert to proportional font. I investigated a bit in the past, and the problem seemed to be due to the fact that in some situations, UBB generates invalid HTML for code tags. It tries to stretch a <font> tag across multiple blocks (e.g. paragraphs). I think. Don't really remember right now; I know I was going cross-eyed trying to sort ot all out, because sometimes the HTML is OK, and sometimes it's not. In the case of invalid HTML, Opera and IE interpret it one way, and Mozilla and Firefox interpret it another. That's my guess at least.
[ August 10, 2004: Message edited by: Jim Yingst ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic