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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -