Change calendar event background color in SharePoint 2013

when you create any event in the SharePoint  calendar, the background color will appear in blue like below:



We can change this background color using CSS. Edit the calendar page and add a script editor web part. To add a script editor web part, edit the page then from the Ribbon click on INSERT -> Web Part -> then from the categories select Media and Content and then choose Script editor web part.

Add below CSS to Script editor web part -

<style type="text/css">
.ms-acal-item {
BORDER-BOTTOM: #ed0033; BORDER-LEFT: #ed0033; BACKGROUND-COLOR: #ed0033; BORDER-TOP: #ed0033; BORDER-RIGHT: #ed0033
}
.ms-acal-default-hover {
BORDER-BOTTOM: #ed0033; BORDER-LEFT: #ed0033; BACKGROUND-COLOR: #ed0033; BORDER-TOP: #ed0033; BORDER-RIGHT: #ed0033
}
.ms-acal-apanel-item {
BORDER-BOTTOM: #00485b; BORDER-LEFT: #ed0033; BACKGROUND-COLOR: #ed0033; BORDER-TOP: #ed0033; BORDER-RIGHT: #ed0033
}</style> 


Output -







Comments

Popular posts from this blog

How to Customize exported excel's cell background color in Datatables

Populate dropdown using jquery ajax in SharePoint

Clear DataTable on button click