When creating content on a publishing site through a Page Content HTML editor there are some basic styles that come OOTB: The styles are actually conditional and different styles appear based on the type of content selected.
- Article By Line
- Article Head Line
- Article Title
- Square Bullet List (Only for un-numbered lists)
- Roman Number List (Only for numbered lists)
- Link Style
You can view the OOTB styles by going to "http://yourportalsite/_layouts/1033/styles/HtmlEditorCustomStyles.css"
There is also the option of using the paragraph formatting dropdown to style your content.
So how do you create your own custom styles?
- First you will have to create your own custom CSS file.
- Then you need to know how to classify your content. Use the following attribute in your custom CSS without the quotes of course. Replace the "yourstylename" with your own custom style name without spaces.
- Images: "IMG.ms-rteCustom-yourstylename"
- Links: "A:link.ms-rteCustom-yourstylename"
- Numbered Lists: "OL.ms-rteCustom-yourstylename"
- Un-Numbered Lists: "UL.ms-rteCustom-yourstylename"
- Basic text: ".ms-rteCustom-yourstylename"
- Note: If you are creating completely new styles they will override the OOTB styles and the examples above will not show. So if you like some of the OOTB style simply copy them over to your new CSS file.
- Upload your stylesheet to either the server or a document library, and under site settings set it as an alternate style sheet. Or you could add it to the bottom the core.css file so that it is available globally across all sites.
And that's about it! Good luck styling and let me know if you found this useful!