Hi,
I have a centered table containing assorted divs which make up the layout of a web page. There is no navigation. It's a single page site. Table margins are 20px top and 20 px bottom.
The div at the top of the table is the header for the page. Let's refer to it as the "header". It contains the logo graphic, etc. and is the full width of the table.
Without using frames:
I want the header to stay in place so it never scrolls off the page. If the user scrolls to the top of the page, the header should reposition to the top of the table. In other words, the header will always be 20px from the top of the browser window due to the table margins.
I've seen javascript floating menus that stay positioned on the page while scrolling takes place. I'm wondering if this could be employed to make my header do that.
If so, how?
Thanks!
I have a centered table containing assorted divs which make up the layout of a web page. There is no navigation. It's a single page site. Table margins are 20px top and 20 px bottom.
The div at the top of the table is the header for the page. Let's refer to it as the "header". It contains the logo graphic, etc. and is the full width of the table.
Without using frames:
I want the header to stay in place so it never scrolls off the page. If the user scrolls to the top of the page, the header should reposition to the top of the table. In other words, the header will always be 20px from the top of the browser window due to the table margins.
I've seen javascript floating menus that stay positioned on the page while scrolling takes place. I'm wondering if this could be employed to make my header do that.
If so, how?
Thanks!