How to Apply Custom Styles in Power Pages? How to Apply Custom Styles in Power Pages?
Microsoft Power Pages
Share:

Microsoft Power Pages is a user-friendly platform designed for creating and managing websites without the need for coding expertise. It offers a range of pre-designed themes and templates, enabling users to personalize their site’s styling for a unique look. Within Power Pages, the Default Styling Workspace facilitates detailed customization of fonts, colors, and other elements, while the CSS File Upload method ensures consistent design changes across the entire site. Whether you prefer utilizing built-in tools or custom coding, this guide will assist you in achieving a personalized website.

Custom styling can be implemented in Power Pages through two different methods: 

  1. Default Styling Workspace: Within Power Pages, the Styling Workspace empowers you to customize CSS properties for specific elements across your pages. This functionality enables adjustments to fonts, colors, sizes, and various other attributes of individual elements, granting you precise control over the appearance of each element on your webpage.
  2. CSS File Upload: In your preferred code editor, you can craft a CSS file tailored to your design preferences and subsequently upload it onto Power Pages. Upon uploading, this CSS file will be universally applied across all pages on your website, ensuring consistent styling and design elements throughout your entire site.

Method 1: Default Styling Workspace

  1. Upon creating your sites, choose the particular site to which you wish to apply default styling or CSS.
  2. Click on the “Edit” button corresponding to the site you wish to modify.
    Default Styling Workspace
  3. Navigate to the left-hand panel and choose the “Styling” option from the available menu.
    Styling Option Window
  4. Choose the desired theme that you wish to apply to your site.
  5. Once a theme is selected, various elements can be customized to suit your preferences like:
    • Brand Color and Background Color: Modify the brand color and background color of the page to your preferred choices.
      Brand Color and Background Color Options
    • Fonts: Adjust font-related attributes such as font family, font weight, font size, and font color for various headings to customize the appearance of text on your page.
      Font-related Attributes Windows
    • Buttons: Customize button properties like style, button radius, background color, and additional attributes to tailor their appearance on the page.
      Button Customization Properties
    • Links: Modify link properties including the presence of underlines, font style, link text color, hover color, and other attributes to customize the appearance and behavior of links on the page.
      Link Modifying Properties
  6. Once you’ve made the desired styling adjustments, remember to save the changes to ensure they are applied to your site.
    Styling Save Option
  7. To apply the updated CSS and view the alterations, choose the “Sync” option.
    Sync Option

Method 2: CSS File Upload

  • Choose the particular site to which you wish to apply custom CSS.
  • Click on the “Edit” button corresponding to the site you wish to modify.
  • Navigate to the left-hand panel and choose the “Styling” option from the available menu.
    Styling Option
  • Within the selected theme, locate the “More” option and then proceed to click on “Manage CSS.”
    Manage CSS Option in Styling
  • Within the Custom CSS section, choose “Upload,” and then select the CSS file you wish to upload for the application.
    Custom CSS Upload Option
    Here is an example of how to apply custom styling on Image in Power Pages

    1. Create a page and add an image on that page.
      Component Adding Options
    2. To implement personalized formatting, navigate to the page you’ve generated and click on the Edit option. This action will launch Visual Studio Code for editing purposes.
      Visual Studio Code Option
    3. Assign a class name, for instance, cardimage‘, to the image element
      cardimage
    4. Go to the ‘image card’ section and find your ‘CSS’ file.
      image card section
    5. Apply your customized CSS styling to the image based on your preferences.
      customized CSS styling
    6. After making your CSS modifications, save the file by using Ctrl+S (or the appropriate shortcut for your system). Next, revisit your Power Pages site and click on ‘Sync.’
      Sync Option
    7. To preview the alterations on your site, click on ‘Preview’ and choose the ‘Desktop’ option.
      Mobile and Desktop Preview Option
    8. Once finished, you will observe the image with the personalized style you added.
      Image observe with personalized style

Conclusion

Microsoft Power Pages offers low-code/no-code options for website creation with customizable styling through its Default Styling Workspace and CSS File Upload methods. These features allow for precise control over design elements, enabling users to create a unique website.

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.