Scott on Writing

Musings on technical writing...

A FireFox Friendly MSDN

In a couple of previous blog entries of mine - Don't Make Me Use IE and Here's One Way to Win the Browser War - I expressed my frustration at MSDN Web pages not displaying code sections properly in FireFox.  In Internet Explorer the code samples looked fine, but FireFox caused all of the code to be smushed together, without any whitespace between characters or lines of code.

Today I got some good news in the ol' InBox, as Lowell Meyer wrote in to tell me that MSDN's CSS files have been fixed to support FireFox.  The following is Lowell's email (printed with permission from Lowell):

I know it’s been a couple months, but I wanted to let you know we’ve fixed the problem with the code samples in the library for non-IE browsers.  The library (/library) is handled largely separately from the rest of the site, which is why it was still a problem.  Code samples should now display correctly formatted, and they should word wrap when necessary.  The developer center pages should still work as well, though they won’t have the nice text wrap when necessary like the library pages we’ve fixed here.  We’re working the improved fix for the dev centers through the system as well, and everything should be perfect soon. 

If you see any pages that still have the problem, please let us know.  We’ve tried to find every CSS file that has this issue and fix it, but it is possible we might have missed one. 

Here’s what we did:  The fix was a pure CSS fix.  The fix was to modify the <pre> tag style from the original (only part of the style shown for clarity): 

pre
{
  white-space:normal;
  word-wrap:break-word;
}

 To the new version:

 pre
{
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
 
If you check out the page you originally sent us as being broken, the fix is live and should be working correctly: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcompositionvsrendering.asp

Looks good, Lowell, thanks for following up.

posted on Wednesday, October 20, 2004 3:04 PM

Feedback

# re: A FireFox Friendly MSDN 10/20/2004 5:26 PM graz

Great! Now if they could get the subscriber page fixed for FireFox I'd be ecstatic. The grid on the left displays but won't collapse and you can't resize it. It's darn near impossible to download their software using FireFox.

# re: A FireFox Friendly MSDN 10/20/2004 11:38 PM Lowell Meyer

Thanks for the info graz-- I'll check the issue out, and see if I can get it added to our online update list of bugs to fix.

# soderlind.no - MSDN is Firefox friendly 10/21/2004 12:58 AM Pingback/TrackBack

soderlind.no - MSDN is Firefox friendly

# MSDN Library Fixes for Firefox 10/21/2004 5:24 PM Jeff Perrin

# re: A FireFox Friendly MSDN 10/22/2004 12:35 AM Claudius Ceteras

The wraping of the method signatures still ain't right:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmldocumentclasscreateelementtopic3.asp

# re: A FireFox Friendly MSDN 10/22/2004 8:17 AM Scott Mitchell

Claudius, could you specify how it "ain't right?" The method signatures you send me look fine on FireFox 0.9.3 on my computer...

# re: A FireFox Friendly MSDN 10/22/2004 10:32 AM Lowell Meyer

Thanks, Claudius. You're correct, the method signatures in the darker box at the top don't wrap correctly for me either. I'm checking into it now.

# re: A FireFox Friendly MSDN 10/22/2004 10:34 AM Scott Mitchell

Lowell/Claudius - what version of FireFox are you using? It still looks fine for me... :-/

# re: A FireFox Friendly MSDN 10/22/2004 2:36 PM Lowell Meyer

The 1.0 preview release. Did you implement one of the various fixes to the <pre> tag problem that involves a client-side CSS solution? If so, it could be that you have some custom CSS set up with your browser that is changing your rendering.

# re: A FireFox Friendly MSDN 10/22/2004 2:38 PM Scott Mitchell

Hehe, yes, Lowell, I have one of the <pre> fixes for FireFox. No wonder it works for me, and no wonder I've been able to use FireFox all this time on MSDN without problem (since my last blog entry). :-)

# re: A FireFox Friendly MSDN 10/22/2004 4:12 PM Lowell Meyer

Claudius-- if you check that link again (and clear your local cache), the method signatures should display correctly. There was an additional CSS rule (pre.syntax) that was overwriting our fixed pre rule; it has been removed and now things display correctly.

Thanks for the heads up!

# re: A FireFox Friendly MSDN 10/25/2004 10:50 AM Lowell Meyer

graz-- I hate to say this, but it sounds like the /subscriptions/ portion of our site is only intended to be used in IE. While I personally disagree with this, I don't think we're going to be fixing it up to work with other browsers.

However, that's the exception, not the rule. For the rest of our site, we really do want to support everyone and make sure that anyone who wants to can come read our content.

# re: A FireFox Friendly MSDN 10/26/2004 7:25 AM graz

Lowell, thanks for checking on that and responding. I appreciate it even if it wasn't the answer I wanted :)

# Another request for Lowell 10/26/2004 7:45 AM GlenH

While you are fixing things...

How about fixing the style sheet links on most of MS download pages so that you don't get the "This page could not be saved" message in I.E. I like to save the description page with my downloads, as I'm sure many others do. Better yet, fix I.E. so that it will save the page regardless of whether the style sheet comes from the same server. Firefox does not have this problem. We've been waiting for about three years for MS to fix this.

# re: A FireFox Friendly MSDN 11/10/2004 1:08 PM Matt

It still seems as though their left side bar doesn't expand and allow you to navigate that way, so if I look up something like SqlCommand I still can easily switch from the class to members.

# re: A FireFox Friendly MSDN 3/11/2005 11:06 PM Shay

still not right any ideas on a fix for this?

# re: A FireFox Friendly MSDN 3/24/2005 6:45 AM Dewey

The code snippets in the support.microsoft.com area could use this fix!

Example:
http://support.microsoft.com/kb/q186094/

# re: A FireFox Friendly MSDN 10/5/2005 1:32 PM Jon

Still not right with Firefox 1.0.7:

http://msdn.microsoft.com/library/?url=/library/en-us/dndotnet/html/fastmanagedcode.asp

# re: A FireFox Friendly MSDN 12/1/2005 8:56 AM Debra

I have a question/problem. I need to put a long url on a webpage. It works fine in IE but in Firefox the url doesn't wrap, much like what is happening on this page. Do you know a fix for this?

Thanks in advance

# Word wrap by javascript 5/23/2006 10:18 AM Micox

Hi, i post a javascript solution to this problem in my blog.
I dont know if can help you, but see it:
http://elmicox.blogspot.com/2006/05/script-quebra-de-palavras-word-wrap-no.html

# re: A FireFox Friendly MSDN 1/16/2007 7:10 AM test

how do i wrap the text(which has no whitespaces) in firefox???

Title:  
Name:  
Url:
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments   

Add To Your Reader

My Links

Archives

Post Categories

 

I am a Microsoft MVP for ASP.NET.
I am an ASPInsider.
<May 2008>
SMTWTFS
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Comment Stats

DayTotal% of Total
Sunday 1866.8%
Monday 37913.9%
Tuesday 45316.7%
Wednesday 50418.5%
Thursday 53519.7%
Friday 49418.2%
Saturday 1666.1%
Total 2717100.0%

Hour1Total% of Total
12:00 AM 652.4%
1:00 AM 682.5%
2:00 AM 622.3%
3:00 AM 742.7%
4:00 AM 572.1%
5:00 AM 1033.8%
6:00 AM 1084.0%
7:00 AM 1585.8%
8:00 AM 1716.3%
9:00 AM 1475.4%
10:00 AM 1716.3%
11:00 AM 1816.7%
12:00 PM 1886.9%
1:00 PM 1696.2%
2:00 PM 1605.9%
3:00 PM 1324.9%
4:00 PM 1073.9%
5:00 PM 923.4%
6:00 PM 913.3%
7:00 PM 963.5%
8:00 PM 833.1%
9:00 PM 782.9%
10:00 PM 792.9%
11:00 PM 772.8%
Total 2717100.0%

Comments by Blog Entry Date/Time

Day Entry MadeAvg.Total
Sunday 5.54144
Monday 5.22339
Tuesday 4.28419
Wednesday 7.67637
Thursday 6.90607
Friday 5.48411
Saturday 5.33160
Total 5.842717

Hour1 Entry MadeAvg.Total
12:00 AM 5.0035
1:00 AM 1.002
5:00 AM 0.000
7:00 AM 7.0035
8:00 AM 5.35107
9:00 AM 6.32278
10:00 AM 6.47246
11:00 AM 4.41181
12:00 PM 6.88330
1:00 PM 3.00111
2:00 PM 5.41222
3:00 PM 8.64285
4:00 PM 4.0589
5:00 PM 5.92154
6:00 PM 4.52113
7:00 PM 9.67174
8:00 PM 9.80147
9:00 PM 5.05111
10:00 PM 5.4265
11:00 PM 4.5732
Total 5.842717

Learn More About Comment Stats
1 - All times GMT -8...


Blog Stats

Favorite Web Sites

My Books

My MSDN Articles