How can we help you today?

How to Change the Vertical Alignment of Text Inside Tiles Using Custom CSS

By default, when you use the Tiles Design Element, you can only change the horizontal alignment of text and not the vertical alignment:


text horizontal alignment


This article will demonstrate how to change the vertical alignment of the text inside the Tiles using Custom CSS:


vertical alignment


TABLE OF CONTENTS


Prerequisites


Interactive Tutorial

Copy the code below before starting the tutorial:


.shortpoint-tile-style-sarah .shortpoint-tile-title {
margin-top: 0px;
margin-bottom: 0px;
}



Step-by-step Tutorial

Follow the detailed steps below:


Step 1: Edit the ShortPoint Web Part

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

Edit


  • Click the cross icon to close the Toolbox:

cross icon


  • Click the ShortPoint tag:

ShortPoint tag


  • Select the Edit properties icon:

Edit properties icon


Step 2: Copy the Code


  • Copy the Custom CSS code below:
.shortpoint-tile-style-sarah .shortpoint-tile-title {
margin-top: 0px;
margin-bottom: 0px;
}

Step 3: Edit the Tiles Design Element


NOTEBefore proceeding, ensure you already have a Tiles Design Element on your page. To learn how to add it, check out How to Customize the Tiles Design Element.

Tiles Design Element


  • Click the Tiles tag:

Tiles tag


  • Select the cogwheel icon:

Cogwheel icon


Step 4: Paste the Code

  • Click the next icon:

next icon


  • Navigate to the Custom CSS tab.
  • Paste the code in the space provided.
  • (Optional) If you’re not using the Sarah Tile Style, you will need to change it. Replace sarah with the tile-style you are using. In our case, we are using bordered so we will replace sarah with that:

 change style


  • Then, customize the margin-top and/or margin-bottom values according to your preferences:

Customize margin values


Step 5: Save

  • Once satisfied, click the green check mark.
  • Then, 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 know how to change the vertical alignment of text inside the Tiles Design Element.


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