web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to customize the c...
Power Pages
Answered

How to customize the columns in a 2 column section

(0) ShareShare
ReportReport
Posted on by 179

I have a question about a two columns section component in a portal page. Is it possible to adjust the width of the columns? I would like to have one column 2 thirds the width of the container and the second column 1 third the width. The first column will contain an entity list and the second column will contain some text related to the entity list. Also, I would like the container, which has the 2 columns, to be the full width of the section which holds the container. I'm trying to achieve the layout as in the attached image file. I’ve got the image at the top of the screenshot working fine by creating a new CSS section class and using it in the web template for the page.

2columnlayout.png
Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @paulsnolan , 

     

      By changing a few inbuilt classes you can easily achieve this. Please try the below code to get what you want as per your screenshot. 

     

    <div class="row sectionBlockLayout" style="display: flex; flex-wrap: wrap; text-align: left; min-height: 100px; padding: 8px; margin: 0px;">
     <div class="col-md-8 columnBlockLayout" style="display: flex; flex-direction: column;"></div>
     <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;"></div>
    </div>

     

    Output: 

     

    ragavanrajan_0-1615482895980.png

     

    Hope it helps. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

     

     

     

  • paulsnolan Profile Picture
    179 on at

    Thanks 

     

    How would I place my entity list in the first column?

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @paulsnolan ,

     

     If you are using the portal studio. Just select the first column > Select components from the left menu and insert entity list. 

     

    or you can simply include the liquid tag inside the first column like below. 

     

    <div class="row sectionBlockLayout" style="display: flex; flex-wrap: wrap; text-align: left; min-height: 100px; padding: 8px; margin: 0px;">
     <div class="col-md-8 columnBlockLayout" style="display: flex; flex-direction: column; background: red;">{% include 'entity_list' key: 'EmpList' %}</div>
     <div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column; background: green;"></div>
    </div>

     

    Output: 

     

    ragavanrajan_0-1615544630264.png

    Hope it helps. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • paulsnolan Profile Picture
    179 on at

    Thanks ragavanrajan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 50

#2
Valantis Profile Picture

Valantis 26

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard