Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I need to change the default font-size in Sharepoint 2010 Content Editor. I've tried to set .ms-rte-wpbox {...} CSS property as suggested somewhere on web but it didn't work. Any help would be appreciated.

EDIT: I want to rather select (as default) the second (or another) option from font-size drop down menu than change all with CSS.

Font size field

share|improve this question
    
What did you end up doing? –  BGM Feb 7 at 15:50
add comment

3 Answers 3

Just create new css file and refer that to default.master page after changing required styles..refer this.. http://virtualizesharepoint.com/2011/06/01/changing-sharepoint-2010-default-font-size/

share|improve this answer
    
I'd rather want to select the second option (10pt) from dropdown menu and don't affect earlier saved webparts. –  veritas Feb 27 '12 at 14:07
    
Have you referred that link or not. It won't change any webparts. Just try out.. –  Sanker Feb 27 '12 at 14:15
add comment

It's a bit late, but the entry in the css is under .ms-rteFontSize-1 to .ms-rteFontSize-8. you can set all the font-sizes for the depicted select there.

Hope it helps after such a long time.

share|improve this answer
add comment

I see you changed the scope of your question with your edit, but I have a solution that will change the content editor default.

This will change the default font size in the wiki editor:

.ms-wikicontent, .ms-wikicontent p,
.ms-rte-layoutszone-inner-editable, 
.ms-rte-layoutszone-inner-editable p, 
.ms-rtestate-write,
.ms-rtestate-write p{
    font-size: 10pt;
}

Just add it to your master page or to your custom css somewhere. Or you could even put it in a content editor for a particular page.

The declarations cover not only regular wiki content, but wiki content whilst in edit mode - both for the p element and for text without the p element. Apparently, the style class changes when you enter edit mode.

I want to rather select (as default) the second (or another) option from font-size drop down menu than change all with CSS.

Ah, to do this, I think you will need to use some javascript.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.