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
Post a Comment