CSS Layout How to - Place image to left bottom corner with background position: fixed








Question

We would like to know how to place image to left bottom corner with background position: fixed.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
html, body {<!--  w w w. ja  v  a2  s  .  com-->
  height: 100%;
}

body {
  background: url(http://www.java2s.com/style/download.png) 0 100% no-repeat fixed;
}
</style>
</head>
<body>
</body>
</html>

The code above is rendered as follows: