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 / Portal Header Size (He...
Power Pages
Answered

Portal Header Size (Height) Issue

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I've updated my Content Snippet for the Header of my portal to include my company logo, and it looked great...until I accidentally clicked on the logo image in the visual studio editor (I'm guessing I did a imperceptible logo image resize) and now the header has shrunk, so the logo container is spilling out into the page section below. I can't figure out where the Header size coding is located, or how to undo/resize the header appropriately... help! 

 

I'd like to keep my Logo this size (and not puny sized to fit inside the new shortened header)...can anyone direct me where to resize the height of the portal header? AND perhaps how to size the header to match the height of content snippet size rather than a set pixel height (although either would be fine!)?


Here's an image of the issue

Portal header.png

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    If your image was just replacing the Contoso text in the header, then this is held in a Content Snippet - and there are 2 of them one for wide (Navbar Left) and one for mobile size (Mobile Header).  The more difficult thing is if you're height causes issues then you have to make multiple adjustments to the various CSS Media rules to accommodate it - just remember that when your browser window becomes smaller the nav menu changes (and  can mean a bit of work to get all the heights and widths correct).

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    hi, you might be able to find the code in the Portal Management App

    navigate to make.powerapps.com --> apps --> Portal Management --> Web Templates --> Header

    this is liquid code responsible for rendering the header

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @OliverRodrigues - I do most of my editing in Portal Management & check visuals in the Studio...I'm a noob with liquid... what section of this code I should look in? (I tried a few things hesitantly before I posted, but I'm glad I was in the right place 🙂

    I see there's 2 divs for the content snippet...did this duplicate as xs size in error?? also, I see an interesting sting at the bottom that i'm not sure of... see my screenshots below ...

     

    See Green area: is this where my height issue lives?

    lisarinehart_1-1607034406895.png

    and or/ see this bit of code... is it pertinent here? (i.e. what is the resize event, what is resize and why? ) 

    lisarinehart_0-1607034219733.png

    Thank you very much!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @Fubar , this is not the issue. I have already replaced the logo with the snippet code in the portal management and the sizing was perfect (via code, at width 15% of original image and height auto to maintain proportions. Unfortunately something weird happened and container now spills out on the page and resize with the page regardless of screen sizes or zoom...i.e. it gets proportionally large and maintains the over spill in concert with the rest of the page...this tells me its the snippet container sizing shifted out of the header and the header size has defaulted to the menu snippet height max, but no idea where this is located.

     

     

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

    hi  @Anonymous  , 
     You are in the right place of web template. There are some approaches which I think would fix your issue 
     
    1. Try deleting your company logo and upload the fresh logo
    2. Using Portal studio > Sync configuration > then Browse website 
     
    Because we have not modified anything on web template. Now it will bring back your original version. 
     
    Then using custom css in the portal studio resize the logo according to your wish. 
     
     custom.css.png

     


     

     

     

     

     

     

     

     

     

     

    img{ height: 55px !important; width:55px !important; } 


    The above css will definitely override the image size. 
     
    Additional: 
     
    1. In the header web template 
     
    2  . If you wish you can also check line 44 on how the image height and width has been rendered
     

    ragavanrajan_0-1607038032465.png

     


     
    Hope this helps. 
     
    PS: It is a coincidence I did exactly the same issue yesterday while setting up logo. 
     
    ------------
     
    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.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    The JS Function I believe is to set the navbar size for mobile/when resizing

    you are at the right place, but the div you want to set the height is the one with the class navbar-header:

    OliverRodrigues_0-1607073883945.png

     

    Ideally you should set that in the CSS (create a new one instead of making changes to the OOB bootstrap). Just as an example I am setting directly in the div element in the Header Web Teamplte

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    hi @Anonymous did my last answer help your issue? can you mark as the solution so other users can find it?

    thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks @ragavanrajan ! this worked great - (i tried to post a reply yesterday but there was a weird at every attempt.) I had to be creative and careful to delete just the image inside the snippet so as not to delete the snippet, then add a new image component, add the image & resize in the portal management html for the mobile header snippet (as I originally did). I will say that initially it looks like it might not work when you are going through the process, especially it if it's a large image that you are shrinking, but once you do that final step of resizing it goes right to where it belongs! (just in case anyone else is reading this and using this as their solution....be patient!) 

    lisarinehart_0-1607447262652.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @OliverRodrigues  - i did manage to get it without resizing the other snippet in the header template - that was going to be my next step. I will definitely keep that on the backburner if I need for other things. 🙂 definitely appreciate you help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 62

#2
Valantis Profile Picture

Valantis 46

#3
rezarizvii Profile Picture

rezarizvii 43

Last 30 days Overall leaderboard