Fixed Header/Footer With Scrolling Inbetween
I use Dreamweaver CS4 and wonder if there is a way to have a fixed header and footer with scrolling inbetween
Sandy
I use Dreamweaver CS4 and wonder if there is a way to have a fixed header and footer with scrolling inbetween
Sandy
Nancy O.
I'm just not sure how it fits together so would appreciate more help
from you when time allows.
I have decreased the header height to 149
I have sliced the background image down to a height of 172 (width of 50)
which includes the nav bar. The name of the background image is now
bkgrndImageHdr.gif. It now resides in the body.css because I just don't
know where it should be.
The current file that I'm working with is http://www.index_test3.html
with index5.css.
Thanks so much - you're great,
Sandy
CSS:
Remove background from body and apply to #header.
#header {
text-align: center;
width: 100%;
background-image: url(images/bkgrndImageHdr.gif);
position:fixed;
top:0;
left:0;
}
HTML:
Move your #header div above the #container div
<div id="header>
header content & menu goes here
</div>
<div id="container">
<div id="mainContent" align="center">
<p><img src="images/spacer.gif" width="100" height="5" alt="spacer" /></p>
<h1>WELCOME</h1>
The rest of your page content here...
</div>
</div>
<div id="StickyFooter">
sticky footer content here
</div>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.