7/19/2010

SharePoint: Font Sizes!

 

Simple question… I want to update core.css to change the font sizes displayed in the page… how many do I need to update?

Would believe 19 different font sizes in 155 different styles in MOSS? 

And in SharePoint Server 2010 there are 36 different font sizes in 222 different styles!

 

Out of the table below, there are a few that really make you go “huh?”

  • font-size:1pt;    (I need better glasses)
  • font-size:72pt;  (I can see that one! Ok, not fair, this one is not used in a page, but is an optional size in the rich text editor…)
  • font-size:0px;  and 1px and 2px???

After seeing all of those fixed font sizes you now understand why your browser’s “View, Text Size” feature does nothing to SharePoint pages.  Good thing IE 7 and FireFox added a Zoom option! 

 

To explore your core.css file just modify your SharePoint site’s URL to look like this:

     http://yourservername/sites/yoursitename/_layouts/1033/styles/core.css

 

Or if you have access to the server open up Windows Explorer and go here:

2007: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES

2010: C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033\STYLES

(The 1033 is for English)

 

 

Font sizes found in CORE.css:

 

MOSS 2007 Count SharePoint Server 2010 Count
         
font-size:1pt; 3   font-size:1pt; 3
font-size:7pt; 2   font-size:7pt; 2
font-size:8pt; 115   font-size:8pt; 127
font-size:9pt; 4   font-size:9pt; 4
font-size:10pt; 4   font-size:10pt; 6
font-size:11pt; 1   font-size:11pt; 3
font-size:12pt; 2   font-size:12pt; 4
      font-size:14pt; 1
font-size:16pt; 3   font-size:16pt; 6
      font-size:18pt; 1
      font-size:24pt; 1
      font-size:36pt; 1
      font-size:48pt; 1
      font-size:72pt; 1
         
      font-size:0px; 2
font-size:1px; 1      
font-size:2px; 6   font-size:2px; 7
font-size:10px; 1   font-size:10px; 1
      font-size:14px; 1
         
      font-size:.6em; 1
      font-size:.68em; 4
      font-size:0.7em; 3
      font-size:.7em; 5
      font-size:.85em; 1
font-size:1em; 4   font-size:1em; 11
      font-size:1.0em; 7
      font-size:1.1em; 1
font-size:1.2em; 2   font-size:1.2em; 3
      font-size:1.3em; 4
      font-size:2em; 2
      font-size:2.2em; 1
         
         
font-size:65%; 1   font-size:65%; 1
font-size:80% 1   font-size:80% 1
font-size:100%; 2   font-size:100%; 2
font-size:120%; 1   font-size:120%; 1
font-size:150%; 1   font-size:150%; 1
font-size:200%; 1   font-size:200%; 1
         
Count of sizes 19 Count of sizes 36
Total occurrences 155 Total occurrences 222

 

 

.

No comments:

Note to spammers...

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.