javascript - How to increase the background size automatically -


how increase background size automatically when new item added page dynamically.

#container1 {     background-image: url(wallpapers.jpg);     height: auto; } #mid {     background-image: url(scripts/white.png);     width: 950px;     margin-left: 210px;     height: 1700px; } 

html

<div id="container1">     <div id="mid">content goes here</div> </div> 

i unable increase background size beyond height defines if define auto not able increase size automatically when new item added.

please in need of college project.

thanks in advance waiting replies.

the div #container takes height of child element, i.e, #mid, in case has height of 1700px. content overflowing div element(#mid). can either remove height property #mid, or have overflow-y: scroll;.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -