How can you alter a title on a single page for instance to change colour or be in bold without changing all other titles


Let's say the 'title' you want to be different is exactly one, e.g.


than you either change it directly:

<h2 style="font-weight:bold;">MyTitleNeedsToBeBold</h2>

or via id-based CSS

<link rel="stylesheet" type="text/css" href="_themes/myStyles.css"/>
<h2 id="mySpecialTitle">MyTitleNeedsToBeBold</h2>

and have the following in your css file

#mySpecialTitle {

If you need this for all h2 tags:

h2 {

If you need it for some tags use the class attribute, etc. etc.

A nice CSS reference: http://www.w3schools.com/cssref/default.asp


You can apply changes to a single page by adding CSS into a Content Editor Web Part.

Add the CEWP to the page, click the link "Click here to add new content", then in the ribbon in the Markup section click HTML > Edit HTML Source and add your CSS there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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