I have a stack of divs inside each other, all of which have an identifier that only indicates CSS.
But for some reason, the surrounding DIV tag only extends its value of the anointed height, and not by default automatically, which means that although the content inside, the support DIV only supports a certain height. I need it to adjust the height to the size of what is inside it (since the user data will be displayed, which will be displayed in points with more than 500 words).
Here is my HTML
<div id="albumhold"> <div id="albumpic">Pic here</div> <div id="infohold"> <div id="albumhead">Name | Date</div> <div id="albuminfo">Information</div> </div>
And CSS for the HTML:
#albumhold { width: 920px; padding: 10px; height: auto; border: 1px solid #E1E1E1; margin-left: auto; margin-right: auto; background-color: #E1E1E1; background-image: url(../global-images/albumback.png); background-position: top center; background-repeat: repeat-x; } #albumpic { display: block; height: 110px; width: 110px; float: left; border: 1px solid #000; } #infohold { width: 800px; background-color: #CCC; float: right; height: 20px; } #albumhead { width: 800px; height: 20px; text-indent: 10px; border: 1px solid #000; color: #09F; } #albuminfo { margin-top: 5px; width: 800px; float: right; color: #09F; word-wrap:break-word; }
Help is appreciated.
html css
Aiden Ryan Apr 25 2018-11-11T00: 00Z
source share