York: Create fixed header. in Coding and Customization Posted November 8, 2016 · Edited November 8, 2016 by cmeadmore Initial Revision Hi, I've used this CSS to create a fixed header with a black background: #header { position:fixed; z-index: 1; background-color: black; padding-top: 40px; width: 100%; padding-bottom: 40px; } The head fixes great but it drops by some 40 pixels so the content beneath appears above it... what am I doing wrong? I need to push the header back to the top of the page! Thanks.C
York: Create fixed header.
in Coding and Customization
Posted · Edited by cmeadmore
Initial Revision
Hi, I've used this CSS to create a fixed header with a black background:
The head fixes great but it drops by some 40 pixels so the content beneath appears above it... what am I doing wrong? I need to push the header back to the top of the page!
Thanks.C