Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Get a DIV in a table-cell to auto-height

Get a DIV in a table-cell to auto-height

Scheduled Pinned Locked Moved Web Development
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harleydk
    wrote on last edited by
    #1

    Hello all, I'm trying to get a table-cell'ed DIV to adjust its height according to another div, also in a table-cell. As in the below, where the red cell is shorter than the black, I need them to align in height (i.e. the height of the black, whose content may wary). Hope someone has the answer. Thanks in advance, Morten Untitled Page

    some text

    text
    more text
    more text

    last text

    foo

    bar

    A 1 Reply Last reply
    0
    • H harleydk

      Hello all, I'm trying to get a table-cell'ed DIV to adjust its height according to another div, also in a table-cell. As in the below, where the red cell is shorter than the black, I need them to align in height (i.e. the height of the black, whose content may wary). Hope someone has the answer. Thanks in advance, Morten Untitled Page

      some text

      text
      more text
      more text

      last text

      foo

      bar

      A Offline
      A Offline
      Ashish Sehajpal
      wrote on last edited by
      #2

      easy solution is to put scroll bars for the content... otherwise u need to tackle it in javaScript.. in javaScript everything is possible on client side

      Ashish Sehajpal

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups