Differences
This shows you the differences between two versions of the page.
— | development:css:fixed_header_footer [2019/10/31 09:04] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Fixed header/ | ||
+ | If you need a static header on the web page for a menu system, or a static footer for some data (tips perhaps?) to be displayed, here is how. | ||
+ | Header HTML: | ||
+ | <code html> | ||
+ | <div id=" | ||
+ | </ | ||
+ | Header CSS: | ||
+ | <code css> | ||
+ | #header { | ||
+ | position: | ||
+ | left:0px; | ||
+ | top:0px; | ||
+ | height: | ||
+ | width:100%; | ||
+ | background:# | ||
+ | } | ||
+ | /* IE 6 */ | ||
+ | * html #header{ | ||
+ | position: | ||
+ | top: | ||
+ | } | ||
+ | div.shadeh: | ||
+ | content: ""; | ||
+ | position: fixed; | ||
+ | top: 0px; | ||
+ | left: 0; | ||
+ | width: 100%; | ||
+ | height: 30px; | ||
+ | -webkit-box-shadow: | ||
+ | -moz-box-shadow: | ||
+ | box-shadow: 0px 0px 10px rgba(0, | ||
+ | z-index: 100; | ||
+ | } | ||
+ | </ | ||
+ | Footer HTML: | ||
+ | <code html> | ||
+ | <div id=" | ||
+ | </ | ||
+ | Footer CSS: | ||
+ | <code css> | ||
+ | #footer { | ||
+ | position: | ||
+ | left:0px; | ||
+ | bottom:0px; | ||
+ | height: | ||
+ | width:100%; | ||
+ | background:# | ||
+ | } | ||
+ | /* IE 6 */ | ||
+ | * html #footer { | ||
+ | position: | ||
+ | top: | ||
+ | } | ||
+ | div.shadef: | ||
+ | content: ""; | ||
+ | position: fixed; | ||
+ | bottom: 0px; | ||
+ | left: 0; | ||
+ | width: 100%; | ||
+ | height: 30px; | ||
+ | |||
+ | -webkit-box-shadow: | ||
+ | -moz-box-shadow: | ||
+ | box-shadow: 0px 0px 10px rgba(0, | ||
+ | |||
+ | z-index: 100; | ||
+ | } | ||
+ | </ |