How to Prevent Tiles Description and Icon from Overlapping

Ever used the “Flat” style for your Tiles Design Element? If you have, you know that it gives your page navigation a clean and modern look.


However, if a description is added to each tile, you’ll notice that it overlaps with the icons.


Overlapping title description and icon in ShortPoint Flat style Tiles Design Element


This article will show you how to use custom CSS to resolve this issue:


Properly spaced tiles description and icon after applying custom CSS


TABLE OF CONTENTS


Prerequisites


Interactive Tutorial


Click Get Started for a step-by-step guide on how to fix the overlapping issue:

Below is the Custom CSS used in the interactive tutorial. You can modify it to fit your needs.


/* Modify the Description */
.shortpoint-tile-description {
  font-size: 13px !important;
  margin-top: -10px !important;
}

/* Modify the Icon */
.shortpoint-icon,
.shortpoint-icon:before,
.shortpoint-icon:after {
  font-size: 70px;
  position: relative;
  top: 5px;
}


Here’s a brief overview of what you can change in the code:


DESCRIPTION

  • font-size - allows you to change the size of the description in px.
  • margin-top - allows you to modify the top margin value between the title and the description.

ICON

  • font-size - allows you to change the size of the icon in px.
  • top - allows you to adjust the space between the description and the icon.

Step 1: Edit the ShortPoint web part

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


Clicking the Edit button on a SharePoint page to modify web part settings


  • Close the Toolbox:


Closing the SharePoint Toolbox panel to access web part controls


  • Click the Edit Properties icon:


Selecting the Edit Properties icon on the ShortPoint web part toolbar


Step 2: Edit the Tiles Design Element


NOTEBefore proceeding, you must already have a Tiles Design Element set to the Flat style with descriptions added.
  • Click the EasyPass tag of the Tiles Design Element:


Selecting the Tiles Design Element EasyPass tag in Page Builder


  • Select the cogwheel icon:


Clicking the cogwheel icon to open settings for the Tiles Design Element


Step 3: Copy the Custom CSS

  • Copy the custom CSS code and modify it to fit your needs.


/* Modify the Description */
.shortpoint-tile-description {
  font-size: 13px !important;
  margin-top: -10px !important;
}

/* Modify the Icon */
.shortpoint-icon,
.shortpoint-icon:before,
.shortpoint-icon:after {
  font-size: 70px;
  position: relative;
  top: 5px;
}

Here’s a brief overview of what you can change in the code:


DESCRIPTION

  • font-size - allows you to change the size of the description in px.
  • margin-top - allows you to modify the top margin value between the title and the description.


ICON

  • font-size - allows you to change the size of the icon in px.
  • top - allows you to adjust the space between the description and the icon.

Step 4: Paste Code

  • Go to the Custom CSS tab.


Navigating to the Custom CSS tab inside the Tiles element settings


  • Paste the code in the field provided:


Pasting custom CSS into the field to resolve description and icon overlap


Step 5: Save

  • Click the green checkmark.


Clicking the green checkmark button to apply element settings


  • Save your changes:


Saving changes on the ShortPoint page action bar


  • Publish your page:


Republishing the updated SharePoint page to publish the tile layout fix


That’s it! You’ve successfully modified the Tiles Design Element.


Frequently Asked Questions


How can I prevent the Tiles description from overlapping with the icon?


You can use custom CSS to adjust the font size and margin of the description and the size and position of the icon. The article provides specific CSS code to modify these elements.


What prerequisites are needed before applying the custom CSS?


You must have the latest version of ShortPoint SPFx installed, be a ShortPoint Designer with an active license, and already have a Tiles Design Element set to the Flat style with descriptions added.


How do I edit the ShortPoint web part on a SharePoint page?


Go to the SharePoint page and click Edit. Then close the Toolbox and click the Edit Properties icon to access the web part properties.


What steps should I follow to modify the Tiles Design Element?


Click the EasyPass tag of the Tiles Design Element, then select the cogwheel icon to open settings where you can paste the custom CSS.


What CSS properties can I change to fix the overlapping issue?


For the description, you can adjust font-size and margin-top. For the icon, you can change font-size and top to control spacing and size.


How do I apply and save the custom CSS changes?


Paste the custom CSS code into the Custom CSS tab, click the green checkmark to apply changes, then save and publish your page.


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.
Free Trial

Try ShortPoint, free for 15 days.

No credit card. Full feature access.

Start Free Trial
Academy

Master ShortPoint, step by step.

Learn ShortPoint in minutes.

Explore Courses
See all 65 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