html - Set table's height to its parent div's height whose height is variable -
i have table inside div, contains image "position:absolute", "width:100%" , "height:auto". div has variable height, , need table have same height div, cells can have percentage heights...
it if found way div, or table, adapt height of image when background-image. because when set width 100%, image doesn't show full vertically, horizontal , gets cut size of table/div.
#footer { width: 100%; } <div id="footer"> <img src="all/footer.png" style="position:absolute; width:100%"> <table> <tr> <td style="height:30%;"></td> </tr> <tr> <td style="width:10%;"></td> <td id="content" style="width:40%; height:30%;">paragraphparagraphparagraphparagraphparagraph <br/>paragraphparagraphparagraphparagraphparagraph <br/>paragraphparagraphparagraphparagraphparagraph <br/>paragraphparagraphparagraphparagraphparagraph <br/>paragraphparagraphparagraphparagraphparagraph</td> <td style="width:50%;"></td> <td rowspan="5"></td> </tr> <tr> <td style="height:25%;"></td> </tr> <tr> <td id="slogan" colspan="3" style="height:10%">one line text. slogan</td> </tr> <tr> <td colspan="3" style="height:10%;"></td> </tr> </table> </div>
Comments
Post a Comment