We would like to know how to center image which is bigger than screen.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.banner {<!-- w ww.j a v a 2 s .c om-->
background: url(http://www.java2s.com/style/download.png) no-repeat 50% 50%;
height: 200px;
}
</style>
</head>
<body>
<div class="banner"></div>
</body>
</html>
The code above is rendered as follows: