Well, along with my attempts to do this, your example failed.
[EXT] Fixed Header and Footer Navbar
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: [EXT] Fixed Header and Footer Navbar
Board rules! No PM support
- Steve
- BBCoder VI
- Posts: 847
- Joined: 05 Mar 2010, 01:10
- BBCodes: 2000
- Favourite BBCode: p**n tube
- Favourite MOD: Non of Stokers
Re: [EXT] Fixed Header and Footer Navbar
fixedheader.css
fixedfooter.css
adjust padding
Code: Select all
/*
* Fixed navbar in header and footer
*/
@media (min-width: 700px) {
#page-header > .navbar {
position: fixed;
top: 0;
left: 0;
border-radius: 0;
z-index: 500;
width: 100%;
display: block;
padding: 0;
margin: 0;
}
.nav-main, .nav-breadcrumbs {
padding: 2px 5px !important;
}
#wrap {
margin-top: 60px;
}
}
Code: Select all
/*
* Fixed navbar in header and footer
*/
@media (min-width: 700px) {
#page-footer > .navbar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
border-radius: 0;
z-index: 500;
width: 100%;
display: block;
padding: 0;
margin: 0;
}
.nav-footer {
padding: 2px 5px !important;
}
#wrap {
margin-bottom: 20px;
}
}
padding: 2px 5px !important;
to your requirements - Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: [EXT] Fixed Header and Footer Navbar
Thanks, that did the trick. Will add it on next update.Steve wrote: ↑25 Mar 2017, 14:40 fixedheader.cssfixedfooter.cssCode: Select all
/* * Fixed navbar in header and footer */ @media (min-width: 700px) { #page-header > .navbar { position: fixed; top: 0; left: 0; border-radius: 0; z-index: 500; width: 100%; display: block; padding: 0; margin: 0; } .nav-main, .nav-breadcrumbs { padding: 2px 5px !important; } #wrap { margin-top: 60px; } }
adjust paddingCode: Select all
/* * Fixed navbar in header and footer */ @media (min-width: 700px) { #page-footer > .navbar { position: fixed; bottom: 0; left: 0; width: 100%; border-radius: 0; z-index: 500; width: 100%; display: block; padding: 0; margin: 0; } .nav-footer { padding: 2px 5px !important; } #wrap { margin-bottom: 20px; } }
padding: 2px 5px !important;
to your requirements
Board rules! No PM support
- Stoker
- Site Admin
- Posts: 3536
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: [EXT] Fixed Header and Footer Navbar
Updated to 1.0.2
Thanks Steve for the fix
Thanks Steve for the fix
Board rules! No PM support