Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    pa
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make DIVLayer determine size of table

    Ok, I have placed a DIV Layer inside a table.

    <table>
    <tr>
    <td>
    <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1"></div>
    </td>
    </tr>
    </table>

    I have multiple Layers inside this table, so is there a way I can have each layer change the size of the table depending on which one is being shown?

    An example of the page I am working on can be found here:

    http://www1.hfs.psu.edu/EastView/con...ST/default.stm

    Thanks in advance
    CyberScout
    Tall and Proud he stands
    Desert sun his only friend
    The Jumbo Cactuar

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When you use position:absolute on an item it is no longer contained "within" the table and thus changes to it's size have no effect on the table.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •