dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Problem setting div height

  1. #1
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    700

    Problem setting div height

    Hello,

    I have 3 inner <div>s nested in an outer div that is generated dynamically (so I don't know its height).

    Something like this...
    HTML Code:
    <div style='min-height:50px'>
      <div style='width:100%; height:33%'>
        some content
      </div>
      <div style='width:100%; height:34%'>
        some content
      </div>
      <div style='width:100%; height:33%'>
        some content
      </div>
    </div>
    I would have expected the in-line css (because of the way the rest of the page is generated, it needs to be in-line) to evevenly distribute the inner divs, but it doesn't.

    Any thoughts would be much appreciated.
    Thanks
    CTB

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,219
    The outer div is going to have a minimum height of 50px. What the actual height of outer div is, if not set by CSS, will depend on the content contained in each inner div.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles