How can we help you today?

How to Equalize the Font Size of the Dates in the Events Design Element

By default, when you use Style 1 as the style of the Events Design Element, you will notice that the Start and End Date have different font sizes:


before custom css


This article will demonstrate how to equalize the font size using Custom CSS:


after custom css


TABLE OF CONTENTS


Prerequisites

  • You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
  • You must be a ShortPoint Designer with an active license.
  • You must already have the Events Design Element on your page.
  • You must use [1] Style 1 as the design style and disable the [2] Group by Day option. Otherwise, the Events Design Element will showcase a different design, and the Custom CSS in this article will not be applicable.


Style and Group by Day


Interactive Tutorial

Copy the Custom CSS below before starting the Interactive Tutorial:


.shortpoint-event-same-month .shortpoint-event-end {
font-size: 100%!important;
}



NOTEYou must use [1] Style 1 as the design style and disable the [2] Group by Day option. Otherwise, the Events Design Element will showcase a different design, and the Custom CSS in this article will not be applicable.


Style and Group by Day

Step-by-step Tutorial

Follow the detailed guide below to learn how to equalize the font size of the start and end dates.


Step 1: Edit the ShortPoint Web Part

  • Go to the SharePoint page you want to use and click Edit:

Edit


  • Click the close icon:

close icon


  • Select the ShortPoint tag.
  • Click the Edit Properties icon:


Edit properties icon


Step 2: Copy the Code

Copy the Custom CSS code below:


.shortpoint-event-same-month .shortpoint-event-end {
font-size: 100%!important;
}

Step 3: Edit the Events Design Element



NOTES:
You must already have the Events Design Element on your page. To learn how to add it, check out How to Customize the Events Design Element.

Events
You must use [1] Style 1 as the design style and disable the [2] Group by Day option. Otherwise, the Events Design Element will showcase a different design, and the Custom CSS in this article will not be applicable.


style and Group by Day


  • Click the Events tag:


Events tag


  • Select the cogwheel icon:


cogwheel icon


Step 4: Paste the Code

  • Click the next icon:

next icon


  • Go to the Custom CSS tab.
  • Paste the code.

Step 5: Save

  • Click the green check mark.
  • Click the eye icon to see your page in real-time:

eye icon


  • Click Save to apply all your changes:

Save


That’s it! You now have the same font size for the start and end dates.


Related articles:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 59 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more