Top Nav SKIN-how to keep it visible when scrolling [FIXED]

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Top Nav SKIN-how to keep it visible when scrolling [FIXED]

Post by M33R4 »

How can I keep the top navigation bar static please :?: I want it to remain visible even when scrolling to the bottom of my page.

Thanks.
Last edited by M33R4 on Tue May 25, 2021 2:35 am, edited 2 times in total.
Newbie to MadCap Flare
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Re: Top Nav skin - how to keep it visible when scrolling

Post by M33R4 »

I tried the following CSS (source: https://kb.madcapsoftware.com/Content/M ... Header.htm)
/* Keep the header from scrolling off the page using absolute position */
.tab-bar
{
position: absolute;
left: 0px;
top: 0px;
width: 100%;

}
/* Add scroll bar to Body and absolute position to prevent body from scrolling behind header */
.main-section
{
overflow: auto;
position: fixed;
width: 100%;
top: 127px;
bottom: 0;
}
/* Header height changes when media is used, adjust the top position of the body to match
Also need to change the width to match the skin settings in the target*/
@media screen and (max-width: 1278px)
{
.main-section
{
overflow: auto;
position: absolute;
width: 100%;
top: 104px;
bottom: 0;
}
}


...but the problem I am having is that it's inserted a 2nd inner scroll bar onto my pages and the content is going behind my page footer.
Newbie to MadCap Flare
SKamprowski
Sr. Propeller Head
Posts: 277
Joined: Fri Feb 13, 2015 8:25 am
Location: Germany

Re: Top Nav skin - how to keep it visible when scrolling

Post by SKamprowski »

Hi,

to fix the header open your Skin in Skin Editor, in the setup section select Fixed Header. This may prevent header scrolling out of window.
You do not have the required permissions to view the files attached to this post.
Kind regards,
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Re: Top Nav skin - how to keep it visible when scrolling

Post by M33R4 »

SKamprowski wrote:Hi,

to fix the header open your Skin in Skin Editor, in the setup section select Fixed Header. This may prevent header scrolling out of window.
You genius SKamprowski - much appreciated :)
Newbie to MadCap Flare
Post Reply