Topbar Fixed ou Stick

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vigreen
Posts: 5
Joined: 22 Oct 2017, 16:40

21 Apr 2022, 09:14

Anyone knows how to set the topbar fixed or stick?

cetincakiroglu
Posts: 130
Joined: 17 Dec 2021, 09:33

27 Apr 2022, 15:12

Hi,

There aren't topbar position options in Sapphire, you need to make it custom by CSS.
Most simplest way is to add these styles:

Code: Select all

.layout-top {
    position: sticky;
    top: 0px;
    z-index: 9999;
}

.layout-content {
    margin-top: 0;  
    // or remove negative margin from the styles
}
Regards

Post Reply

Return to “Sapphire - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests