css - Table inside div -


i have layout 2 left floating divs - 1 picture other content. in content div have inserted table show numeric data. when add table content div float seems lost, second div not show next first 1 rather below.

code example:

<div style="float:left;">         <img src="images/image.jpg" width="200" height="125" alt="image" /></p> </div>  <div style="float:left; padding-left:16px;">          <p>paragraph text </p>           <table width="650">               ....           </table> </div> 

please check width of parent div contains these 2 divs, guess parent not have enough width accommodate both given content , width settings.

<div  style="width:866px;overflow:hidden"> <div style="float:left;">         <img src="images/image.jpg" width="200px" height="125" alt="image" /></p> </div>  <div style="float:left; padding-left:16px;">          <p>paragraph text </p>           <table width="650px">               ....           </table> </div> </div> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -