Topbar Fixed ou Stick

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: 65
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 3 guests