The problem is that I created a table and several arrows separately for different divs. But those divs cannot move and become larger or smaller at the same time if I change the browser or enlarge the page.
I am currently creating a large table. Inside this large table there are many small tables: for each row of blocks it is a table, so how many rows contain how many tables. The arrows are in the new div, its position is โabsoluteโ, I change the position โleft / topโ to adjust its position.
Can someone suggest how I can solve this problem in advance.
<html> <head> <title>Dupont Model</title> <style type="text/css"> .table { //for tables position: absolute; width: 633px; height: 309px; left: 0px; top: -35px; } .NetMarginArrow { Position: absolute; width: 180px; height: 115px; left: 428px; top: 166px; } <------each arrow is asigned with a div class---> </style> </head> <body> <h3> Model</h3> <div class="table"> <table style border="0" cellpadding="0"> <td><table border="0" cellspacing="10" cellpadding="10"> <tr><td bgcolor="#C4E1FF"><b>Net Profit</b></td><td></td></tr> <tr> <td bgcolor="#F0F0F0"> {{net_profit}}</td> <tr><tr><tr> </tr> <tr><td bgcolor="#C4E1FF"><b>Sales</td></b></tr> <tr> <td bgcolor="#F0F0F0"> {{sales.sales__sum}}</td> <tr><tr><tr> </tr> </td></table> <td><table border="0" cellspacing="10" cellpadding="10"> <tr><td bgcolor="#D2E9FF"><b>Gross Margin</b></td><td></td></tr> <tr> <td bgcolor="#F0F0F0"> {{gross_margin}}</td> </tr> <tr> <tr><td bgcolor="#D2E9FF"><b>Tax</b></td><td></td></tr> <tr> <td bgcolor="#F0F0F0"> {{tax}}</td> </tr> <tr> <tr><td bgcolor="#D2E9FF"><b>Total Expenses</b></td></tr> <tr> <td bgcolor="#F0F0F0"> {{total_expenses}}</td> </tr> <tr><td></td></tr><tr><td></td></tr><tr><tr> </td></table> </table> </div> <div class="NetMartinArrow"> <td><table border="0" cellpadding="0"> <td>←<td><table style="height:230px;width:15px;border-color:000000;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-width:2px"><tr><td valign="top"></td></tr></td></table> </td></table> </div> ............................same to all arrows............. </body> </html>
javascript html css
Helรฉna
source share