You must Sign In to post a response.
  • Category: JQuery

    Need detail about dynamic table creation

    Dear Friends
    I am struggle with one new requirement.My requirement is I want to create one table.For ex: hight =100px and with =100 px. now to split that height and width. i can split this table as equal part easily. but if i give input for spliting the table like height =10 and width=40 means that table should have 10 (10*10=100) part of height and 2 (2*40=80 and 20 is palance) part of width. this balance 20 is should be showing in table. can any one guide me.
  • #764077
    you can do the division in spite of doing multiplication right?

    10 (10*10=100) -> you can do (100/10) 10
    2 (2*40=80 ->(100/40 ) 2.5

    By Nathan
    Direction is important than speed

  • #764089
    Some what confused, could you please elaborate little bit.
    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #764539
    Hi,
    you can achieve this by using a scrollable div and placing your table inside it. Define fixed height and width of 100% to div so that when you set particular height and width to inside table, it will look like what you are expecting.
    <div style="height: 100%; width: 100%; border: 2px solid black; overflow: scroll;">
    <table style="height: 40%; width: 80%; border: 1px solid red;">
    <tr>
    <td>....</td>
    </tr>
    </table>
    </div>
    Hope it helps.
    Regards,
    Shashikant Gurav
    shashikantgurav22@gmail.com


  • Sign In to post your comments