CSS Bottom of the element
For bottom , to be effective, you will also need to use position for relative or absolute :
<div style="position:absolute; width: 30px; margin-left: 500px; bottom: 0"> <img src="picture.png"> </div> Use an absolute or relative position depending on your layout requirements.
Note. With position you can use left , right and top .
You must explicitly place the element in order to use the bottom property:
For absolutely positioned fields, this property indicates how far the extreme edge of the bottom field of the box is offset above the lower edge of the filling of its containing block.
For relatively positioned fields, this property indicates how far the extreme edge of the field is offset above the position that it would have in a normal flow.
The element does not have a position rule for bottom . quirksmode contains a good article on CSS positioning.
I think you are looking for something like this.
<div style="width: 30px; margin-left: 500px;"> <img src="picture.png" style='display: block;'> </div> By default, img has some space below, located above the source text. This is not margin or indentation. The most common way to change this is to set the image display to lock.
