I'm having trouble positioning an image within a div tag. I want the image to be at the bottom of the div. Here's my code, why doesn't it work?
Code:
div.frame {
width: 300px;
height: 300px;
border: 1px solid #000000;
text-align: center;
}
img.image {
position: inline;
vertical-align: bottom;
}
<body>
<div class="frame" >
<img class="image" src="images/breakers.jpg" />
</div>
</body>
Hope someone can help, this problem is really bugging me!
Code:
div.frame {
width: 300px;
height: 300px;
border: 1px solid #000000;
text-align: center;
}
img.image {
position: inline;
vertical-align: bottom;
}
<body>
<div class="frame" >
<img class="image" src="images/breakers.jpg" />
</div>
</body>
Hope someone can help, this problem is really bugging me!