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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Highlight webpage Butt...
Power Pages
Unanswered

Highlight webpage Buttons on the Header Menu, when a specific webpage is accessed?

(0) ShareShare
ReportReport
Posted on by 520

Hi,
So in this example I have two webapges, aka 2 buttons

Robert94_0-1660207613916.png


I want, when accessing the Projetos button, that button to be highlighted with a color, maybe coloring the text, or adding a rectangular in the background of it. This indicated to the user that he is on that webpage, so the highlighting will show as long as the user is in that webpage.

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

    Hi @Robert94 

    Yes, it is possible. Please try the following in your localized content > custom CSS section. 

     

    .button1:hover {
     color: black !important;
     background-color: green !important;
     border-color: red !important;
    }

    Note: Add CSS class for your button. In my case: It is button1 

    2. Hit save. 

     

    You can also use  :visited  selector and modify colors 

    :visited {  css declarations;}

     

    ------------
    In Design Studio

    1. Pres sync configuration and preview the website. And press "Ctrl+F5" 

     

    Output:

     

    ragavanrajan_0-1660254586066.png

    On Hover: 

     

    ragavanrajan_1-1660254609971.png

     

    Hope it helps. 
    ------------

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

  • Robert94 Profile Picture
    520 on at

    Hi @ragavanrajan , thank you for your response.
    I can`t seem to find the Button name, I tried with inspect and with the html code inside the Portal Editor, while selecting the Button, but with no success.
    This is how the inspect looks

    Robert94_0-1660292805351.png

     


    Also, what I want to achieve, is to keep that button highlighted the whole time I`m in that page, is that what the code you provided will do?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard