css - Applying margin-bottom to an element -


i tried positioning div element using margin-bottom. reason margin-bottom doesn't appear affect position of element. tried searching answer, though answers had position:absolute, , still couldn't work.

however, did manage position using negative margin-top, i'm still curious know causes not work.

heres fiddle showing html/css.
(what i'm talking image. margin-bottom set 100px.)

try put position absolute property in div class "productimage". this, example:

.productimage {     display: block;     float: left;     position: absolute;     left: 450px;     top: 60px; } 

using i've manipulated image sucessfully. hope can you.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -