Tiny Calender for your SharePoint Page
Thursday, October 1, 2009 at 12:41PM Thanks to Christophe over at the pathtosharepoint blog for his post on using CSS to shrink the OOB SharePoint Calendar down to something that can fit on the Home Page of your site without taking up the entire Page. You can read his post here Part 1 Part 2. I have also added the walk through to the Blog here at CantellayConsulting.
Start off by adding a monthly view of the SharePoint Calendar and a Content Editor WebPart, be sure to check the field to make the Content Editor WebPart hidden.
In the Content Editor WebPart select the Source Editor button and copy and paste the below code into the editor.
This CSS will:
- Reduce the height of the Calendar cells
- Reduce the height of the Header
- Only keep the first letter of the Weekday
- Just keep the Previous and Next month in the Header
- Remove the Week Boxes to the left
Now lets add the ability to see events on the Calendar.
To make these changes we are going to have to modify the display using one of two different methods.
The first method, staying with modifying the CSS is to Shrink the Title. this will display the title to small to read until the user hovers over them.
Add this code to the CSS that we added earlier.
The other method is to remove the title and replace it with a * until the user clicks on them. To do this create a new Column in the Calendar:
- name = “display”
- required = yes
- default value = “*”
Now in the View of the Calendar within the Calendar Columns section select the following:

There you have it, a new Small Calendar that you can use on your SharePoint site that will provide users with the date and easy access to events without eating up all of the space on your page. Again my thanks to Cristophe for the tip.
CSS,
Calendar,
SharePoint in
Configuring SharePoint 




Reader Comments