Skip to main content

Small Calendar for SharePoint 2010 & 2013

First off I would like to apologize for the lack of posts. I have been really busy with my new role as the UX Design lead within Slalom Consulting Boston. I will share more about that in another post.

In a previous post Create Really Small Calendar I showcased how to do this for SharePoint 2007. However the 2010 and 2013 calendar views have changed and therefore we cannot use the same method or CSS as 2007.

SharePoint 2010 Small Calendar:

SharePoint 2013 Small Calendar:

See video below for a video walk through on how to create a small calendar for SharePoint 2010 and & SharePoint 2013 with just CSS.

Per the video above here is the code that I referenced:

2010 CSS link reference in Master Page:
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/smallcalendar.css %>" After="corev4.css" runat="server"/>

2010 CSS:
/**** Small Calendar ***/
.ms-acal-item{height: 10px !important;}
.ms-acal-title{display: none;}
.ms-acal-summary-itemrow TD DIV{height: 15px !important;}

2013 Content Editor Web Part CSS:
/**** Small Calendar ***/
.ms-acal-item{height: 10px !important;}
.ms-acal-month-top span{display: none;}
.ms-acal-summary-itemrow TD DIV{height: 15px !important;}

Thanks & Enjoy!


Thakhi Shaik said…
Hello Eric,

Is it possible to color date background dynamically instead of event background?

Erik Swenson said…
Thakhi, I have not tried this but I bet you could absolute or relative position the color blocks over the dates and set the z-index to go under the numbers.
Thakhi Shaik said…
Thank You Erik..

Can you please post some sample code
williams said…
Thanks you Erik
for the very useful calendar small,
as should make a css for a small newsfeed

jebz said…
Hey, Erik, thanks so much for sharing! I just wanted to share this extra css statement that I use to get rid of the "Add" button that appears when you hover.

.ms-acal-vlink a{display:none;}

Not sure if it works in 2010, but I am using it in 2013.

I am also wondering, what do you, personally, do about the click events that fire when a user clicks on the day of the month (6,7,8...)?
I have a problem. If you have more than one event for a day, only the first event is showing if the height specified in .ms-acal-item is too small. The following events aren't even loading.

Any solution or suggestion for how to solve this?
Erik Swenson said…
Joakim, that is a known limitation with this simple approach. I have tried many times to show the other events in a condensed view but the way the event items are positioned it is impossible for the containing element to know there are more elements. You could remove the .ms-acal-summary-itemrow TD DIV{height: 15px !important;} height but then you would have a very tall and thin calendar.
Sqiar BI said…
It's actually a cool and useful piece of info. I am glad that you simply shared this useful info with us. Please keep us up to date like this. Thanks for sharing, You can also check out this
Corina Honegger said…
Hi Erik

Thanks a lot for your post, it was very helpful for rendering my SPCalendar. The only bug i still get is when clicking on Prev/Next Button the events have the old layout and won't match to the calendar grid anymore. After re-sizing the page they match again. Do you have any idea how to get rid of this bug?
Philipp Kuderer said…
is it possible that the day numbers dont have a link?
So that the day view dont open when I click on a number.

Darsh Antani said…

Is It possible to get Event Title and Description or any other things on "Mouse Hover" in SharePoint 2013 Calendar Template?

Thanks in Advance.
Baldo said…
Great post!

But, when I use this css for sharepoint 2013 this runs perfectly in IE9 and Chrome. But when I use this code in IE11, no runs correctly. I need put IE11 in compatibilty mode view. Any Idea?

Thank you!
Thomas Kelly said…
Hi Erik,

Back to this point. When you have two calendar events on the same day, there is a space between the calendar items and I can't find a way to remove it. Any chance you know? Your video has been really helpful so far.


Mike Malloy said…
Nice work! Do you know a way of forcing the web part to show a specific month? I want to add 12 web parts to one page so I can see the same calendar with all 12 months exposed at once.
Are you tired of seeking loans and Mortgages,have you been turned down constantly By your banks and other financial institutions,We offer any form of loan to individuals and corporate bodies at low interest rate.If you are interested in taking a loan,feel free to contact us today,we promise to offer you the best services ever.Just give us a try,because a trial will convince you.What are your Financial needs?Do you need a business loan?Do you need a personal loan?Do you want to buy a car?Do you want to refinance?Do you need a mortgage loan?Do you need a huge capital to start off your business proposal or expansion? Have you lost hope and you think there is no way out, and your financial burdens still persists? Contact us (

Your Name:...............
Your Country:...............
Your Occupation:...............
Loan Amount Needed:...............
Loan Duration...............
Monthly Income:...............
Your Telephone Number:.....................
Business Plan/Use Of Your Loan:...............
Contact Us At :
Phone number :+44-75967-81743 (WhatsApp Only)
Belal Aboarab said…
This comment has been removed by the author.
Belal Aboarab said…
Hello Eric! Your post is so helpful and it's working great! But I want to ask something, If I want to remove day/week views from calendar, I dont want them to be clickable links what should I do?

CIIT Noida said…
Wow amazing i saw the article with execution models you had posted. It was such informative. Really its a wonderful article. Thank you for sharing and please keep update like this type of article because i want to learn more relevant to this topic.

Best Linux training in Noida
Linux Training Institute in Noida
At COEPD we are glad to announce Web Designing Internship Programs (Self sponsored) for professionals who want to have hands on experience. Associations with IT Companies, at present we are providing this program in COEPD Hyderabad premises. We anticipate finest web designing technology covering Photoshop, HTML, CSS, HTML5, CSS3, JavaScript, Boot Strap, and JQuery. We tutor participants to be solution providers and creative engineers. This internship is intelligently dedicated to our enthusiastic and passionate participants mostly acknowledging and appreciating the fact that they are on the path of making a career in Web Designing. This internship is designed to fortify that in addition to gaining the vital theoretical knowledge, the readers gain sufficient hands-on practice and practical know-how to master the essence of Web Designing profession. More than a training institute, COEPD today stands differentiated as a mission to help you "Build your dream career" - COEPD way.

Popular posts from this blog

SharePoint 2010 Base CSS Classes

This will be the first of many SharePoint 2010 posts. I will be focusing on a few of the main CSS classes used for SharePoint 2010 Public Beta. As the product becomes more final there might be some changes to the class names but I will be sure to create a new post if that happens. This will be quite a lengthy but it should be helpful. The default CSS given below are just highlights of the full CSS attributes for that class.I will be using a basic team site as my base for the screenshots. Here is a basic structure of the main areas that I will cover.Ribbon RowTable Row Left Site Actions Navigate Up Edit Tab List Browse Page Table Row Right Give Feedback Welcome Menu WorkspaceBody Container Title Row Title Title Logo Title Text / BreadcrumbPage DescriptionSocial Data SeparatorI like It Tags/Notes Top Header 2/Top Links li Static-Selected li Static SearchHelpStatus Bar Container Main A…

How To: Hide Left Side Navigation on Home Page

I was recently asked: "How can I hide the side nav bar on the main homepage layout ?? I want to be able to use the side NAV with in the team site etc etc, but I don't want it on the front page.. " There are a couple of ways to do this in SharePoint 2010. If you are using a non-publishing site you can add a Content Editor Web Part to the page and add the following to the HTML Source.
body #s4-leftpanel
display: none;
margin-left: 0px;
Basically the CSS above hides the left navigation Div, and then sets the content area to not have a left margin. Once you are done, simply modify the web part and hide it on the page. If you are using a publishing site for your homepage simply add the same styles specified above to a custom page layout. That way if you have a need for other pages that do not need the left side navigation you can re-use the page layout.

SharePoint 2010 Content Query for Blog Posts

I hope this post will help many of you feel comfortable with using the Content Query Web Part.In this post I will walk you through the process of creating a content query web part and configuring it to show custom field types. I will also give details on how to use XSLT to stylize and format the data being pulled. I will be using the following scenario as an example. Say that you had a site collection with a top level publishing site. This publishing site would display a the most recent blog posts from all blog sites within its own site collection. To solve this problem we will use a Content Query Web Part and a customized ItemStyle.xsl using XSLT.Please note that the “SharePoint Server Publishing Infrastructure” needs to be enabled at the site collection to display the content query web part.Step 1: Add a Content Query Web Part to PageNavigate to the site that you want the blog posts to show up and click on edit page. Under Editing Tools in the Ribbon, Click on insert > Web PartUn…