![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7LpAjUbG5_OnXe2h-Bl_oe4t5efE1qMNDybE3LsX4SCwgp_10vLkkiD_MgtR1XXkpW2hKzcvTrSf_hVxLbqAk96GIZc0lm-h2XLkYFoqU7N0DYkjJRsuSLO2Aj9Hws7TNukgztRvr41w/s400/leek-soup.gif)
Got a tip from my teacher again. This time it's on "fixed positioning" as seen on this CSS Zen Garden site.
~~~~~~~~~~~~~~~~~
The css zen garden footer is positioned with "fixed positioning". There is a div at the bottom of the layout with the bottom.png footer image, positioned 0 pixels from the bottom of the browser. The z-index keeps the div on top of the other divs.
#extraDiv2 {
background-image: url(bottom.png);
background-repeat: no-repeat;
background-position: center;
height: 200px;
width: 100%;
position: fixed;
bottom: 0px;
z-index: 5;
}
Here are a couple articles on fixed positioning,
http://www.w3.org/TR/CSS2/visuren.html#fixed-positioning
http://annevankesteren.nl/2004/07/fixed-positioning
No comments:
Post a Comment