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

Community site session details

Session Id : fNfTpjgpsJiADzbzFzaRiF
Power Pages - Power Apps Portals
Answered

How to customize the columns in a 2 column section

Like (0) ShareShare
ReportReport
Posted on 11 Mar 2021 16:44:12 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.

  • paulsnolan Profile Picture
    179 on 15 Mar 2021 at 14:19:52
    Re: How to customize the columns in a 2 column section

    Thanks ragavanrajan

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 12 Mar 2021 at 10:24:13
    Re: How to customize the columns in a 2 column section

    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 12 Mar 2021 at 08:22:54
    Re: How to customize the columns in a 2 column section

    Thanks 

     

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

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 11 Mar 2021 at 17:15:26
    Re: How to customize the columns in a 2 column section

    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.

     

     

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete