CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Darrell Norton's Blog [MVP]

Fill in description here...

Make MSDN2 Render Better on Firefox

Want to make MSDN2 look better in Firefox? Me too.

The worst part about the documentation on, say, this page, is the fact that the names and descriptions of classes, interfaces, delegates, and enumerations are way too tiny to read.

Here's the hack.  Add the following code to your userContent.css file (I highly recommend chromEdit for editing user files):

@-moz-document url-prefix(http://msdn2.microsoft.com/) {
   /* Make MSDN2 a little more readable */
   div.ContentArea table th, div.ContentArea table td
   {
       font-size: 90% !important;
   }
}


That's it. Note that there is the chance that this will override some other web pages' styles, but oh well. They would need to have the exact same style names applied to tables inside divs.

Thanks to Shawn's comment, the above code was modified to make it site-specific to MSDN2!


Published May 09 2006, 10:23 PM by darrell
Filed under: ,

Comments

Jason Gerard said:

Thanks for the tip.
# May 10, 2006 8:44 AM

Shawn said:

Great tip. You can even make this hack specific to MSDN2 by adding this rule to match on the document URL:

@-moz-document url-prefix(http://msdn2.microsoft.com/) {
   /* Make MSDN2 a little more readable */
   div.ContentArea table th, div.ContentArea table td
   {
       font-size: 90% !important;
   }
}
# May 10, 2006 9:12 AM

darrell said:

Richard - IE tab never worked very well for me.
# May 10, 2006 9:16 AM

darrell said:

Shawn - great! I knew it was possible, just not how.  :)  Even better now!
# May 10, 2006 9:17 AM

Dominik said:

One of the very best tipp in this year, Thanks!!!
# May 10, 2006 11:43 AM

Greg Wojan said:

Actually, I just checked IE7 beta 2 and it renders the pages just like Firefox!

Ain't that just special?
# May 10, 2006 4:11 PM

Oskar Austegard said:

You can also use the CSkinner Greasemonkey userscript found here:
Direct link: http://blog.thedt.net/cskinner/
(Google Cache) http://72.14.207.104/search?q=cache:LNYhGm3HvJ8J:blog.thedt.net/cskinner/+cskinner&hl=en&gl=us&ct=clnk&cd=1
# May 10, 2006 4:35 PM

TobinTitus said:

Another tip would be to not use anything other than IE anymore.
# May 10, 2006 5:20 PM

Page said:

Great post!  I was having the same problem!
# May 11, 2006 8:31 AM

Jason Row said:

Thanks Darrell (and Shawn). I think you had this tip for the msdn.microsoft.com site as well.

What a pain it's been to try and read the bloody pages in FireFox.
# May 13, 2006 6:38 PM

Yuval Ararat said:

I hate to say that but i cant get it to work.
i have updated the file using chromEdit.
reloded the page.
nothing.
restarted firefox.
nothing.
banged the head at the nearest wall.
nothing.
# May 14, 2006 4:32 AM
Check out Devlicio.us!