How can we help you today?

How to Customize the Location of the Button Icon

By default, when you have an icon in the Button Design Element, you don’t have the option to change its location:


button icon default


This article will demonstrate how to move the icon using Custom CSS:


with custom css


NOTEThis Custom CSS only works for Buttons without subtitle.

TABLE OF CONTENTS


Prerequisites


Interactive Tutorial

Copy the code below before starting the tutorial:


display: flex;
width: fit-content;
flex-direction: row-reverse;



Step-by-step Tutorial

Follow the detailed guide below to learn how to change the location of Button icons:


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

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

Edit properties


Step 2: Copy the code

  • Copy the Custom CSS code below:


display: flex;
width: fit-content;
flex-direction: row-reverse;

Step 3: Edit the Button Design Element

NOTEBefore proceeding, make sure you already have a Button Design Element with an icon on your page. To learn how to add it to your page, check out How to Customize the Button Design Element

Button with icon

  • Click the Button tag:

Button 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 once satisfied.
  • Click the eye icon to see your page in real-time:

eye icon

  • Click Save to apply your changes:

Save


That’s it! You can now move the Button icon using Custom CSS.


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