css - Parent background color is missing when I am using position:absolute for child divs -



css - Parent background color is missing when I am using position:absolute for child divs -

i've parent div contains 2 children's within it, parent background missing when using position:relative parent position:absolute both children's.

here fiddle

when set position: absolute, parent's width , height no longer affected child. therefore, see it's background, have set specific height , width grow correctly:

http://jsfiddle.net/sntlq/2/

css css3

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -