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.
Top Nav SKIN-how to keep it visible when scrolling [FIXED]
Top Nav SKIN-how to keep it visible when scrolling [FIXED]
Last edited by M33R4 on Tue May 25, 2021 2:35 am, edited 2 times in total.
Newbie to MadCap Flare
Re: Top Nav skin - how to keep it visible when scrolling
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.
/* 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
-
- 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
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.
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)
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
Re: Top Nav skin - how to keep it visible when scrolling
You genius SKamprowski - much appreciatedSKamprowski 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.
Newbie to MadCap Flare