How can we help you today?

How to Keep All Tiles in a Single Row Using Custom CSS

By default, when you minimize your browser window, the Tiles may wrap to the second row, making the design look less appealing.


This article shows how to keep tiles in a single row using custom CSS, even when the screen is minimized.


BEFORE
AFTER
before custom css
after css



TABLE OF CONTENTS


Prerequisites


Step-by-step Tutorial

Follow the steps to keep your tiles in a single row:


Step 1: Edit the ShortPoint Web Part

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


Edit


Close the Toolbox:


close icon


Select the ShortPoint web part and click the Edit Properties icon:


Edit properties icon


Step 2: Copy and Customize Code

Copy the Custom CSS that fits your needs.


Option 1: If your Tiles only have text:

display: flex;
flex-wrap: nowrap;

& > .sp-type-tile {
  flex-basis: 0;
  flex-grow: 1;
  
  .shortpoint-tile-title-inner {
    font-size: clamp(0.3rem, 1vw, 2rem) !important; 
  }


Modify the code according to your preferences. Here are the properties you can modify:

  • clamp(0.3rem, 1vw, 2rem) - lets you set a font size that grows with the viewport width, while staying within minimum and maximum size limits. It has three parameters:
    • 0.3rem - is the minimum or the smallest value the font size can have;
    • 1vw - is the preferred value of the font size; and
    • 2rem - is the maximum or the largest value the font size can have.


Option 2: If your Tiles only have icons:

display: flex;
flex-wrap: nowrap;

& > .sp-type-tile {
  flex-basis: 0;
  flex-grow: 1;
}
.shortpoint-icon, .shortpoint-icon:before, .shortpoint-icon:after {
font-size: 15px;
}

Modify the code according to your preferences. Here are the properties you can modify:

  • font-size - lets you modify the size of the icons.

Step 3: Edit the Tiles Design Element


NOTEBefore proceeding, make sure you already have the Tiles Design Element on your page. To learn how to add Tiles, 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


Go to the Custom CSS tab:


Custom CSS tab


Paste the code in the field provided:


paste code


Step 5: Save

Click the green check mark:


green check mark


Click Save to keep your changes:


Save


Congratulations! Your Tiles will now be in a single row, even if you minimize your screen size.


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 62 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