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 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts

    stretch div acording to upper div

    Code:
    <div>
      <table id = "stretching1">
        ....
      </table>
    <div>
    
    <div>
      <table id = "stretching2">
        ....
      </table>
    <div>
    tables shrinks to minimum by default, if upper comes out 300 px, I would like
    to have stretching2 of equal width than stretching1

    but not wrapped all this into fixed width div !

    Can this be done some way.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Can't you just put those two tables inside a single div instead of two separate ones?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts
    it would be the same , one would be lets say 300px wide, the other 200 px,
    unless I would applay fixed width to outer div, and 100% width to tables.

    The underlined thing is that I don't want to.


  •  

    Posting Permissions

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