We would like to know how to get images to resize vertically.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#post_holder {<!-- w ww .j a v a 2 s.c om-->
border: 1px solid red;
width: 50px;
height: 300px;
}
#post_holder img {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id='post_holder'>
<img src='http://www.java2s.com/style/download.png'>
</div>
</body>
</html>
The code above is rendered as follows: