Are you finding that when you use the out of the box tag cloud to show tags for all users there is no variation in font size between the various keywords?

I have found the solution to this.  There is a CSS stle sheet for social data which is what the My Site uses when displaying tags there.  The thing that is stopping these styles from being used within the main SharePoint site collection is either your theme css if you are using one out of the box, or the style sheet within the style library.  If you use the default SharePoint theme this will be nightandday.css.

The styles being used within those CSSs will be something like:

.ms-TagCloud
{
 padding: 0;
}
.ms-TagCloud a:active
{
 font-size: 11pt;
 text-decoration: none;
}
.ms-TagCloud a:visited
{
 font-size: 11pt;
 text-decoration: none;
}
.ms-TagCloud a:link
{
 font-size: 11pt;
 text-decoration: none;
}
.ms-TagCloud a
{
 font-size: 11pt;
 text-decoration: none;
}
.ms-TagCloud a:hover{
 text-decoration: none;
}

So the way I solved this was simply to remove any reference to the TagCloud in the out of the box CSSs that I am using.  Now my Tag Cloud web part shows the variation in font sizes wherever I place it in the site collection.

Advertisements