Introduction

Some time back (2002-07-11 to be more precise) bug 156979 made it into Bugzilla. Some rejoiced and some wept as it began to get serious consideration. For the full story, feel free to read the bug, but the end of it came with comment 135 which stated that <marquee> support has been added in. And there was mixed rejoicing to the tune of at least 3 bugs (159839, 161049 and 161109)

The purpose of this page though is not to evengelise the good, the bad and the ugly of the bug but simply to provide a fix to the scrolling side of the bug. For me, personally, this is an issue due to the fact that the scrolling text becomes VERY blurred on a TFT/LCD screen, to the point where my eyes begin to experience pain from a vain attempt at trying to focus on the text.

If you're in that boat or just plain don't like it, try the following fix.

The Fix

Go into your profile directory and then the chrome directory. Under the unix of your choice this would be done with:

cd ~/.mozilla/<profilename>/*.slt/chrome

Please substitute <profilename> with your profile name. Then open up userContent.css with your favourite editor and put in the following:

/* Make marquee less painful */
marquee {
	-moz-binding: none;
	overflow: auto;
	display: block;
}

@media print {
	marquee {
		-moz-binding: none;
		overflow: auto;
		display: block;
	}
}
	

Then just restart Mozilla and try the <marquee> test. It should not have any scrolling bits. If it does, you've done something wrong. :)

An alternate (though somewhat more complicated) solution is also available. With this, instead of the scrolling being merely stopped and the text wrapping so that you can read it all, you can have scrollbars so that you can view the text in as similar amount of space to the original as possible. If this is your cup of tea then go for it. :)

As always, feedback rocks. Send me lots of feedback. :)

Credits

I did not come up with this (although I wish I had :). I got this off Brian Heinrich who got it off Torben.

Err...

Welcome to The Marquee Emporium. I'm not sure what to say, not my idea though...