Correct CSS markup for parent ?

Correct CSS markup for parent ?

korsakovkorsakov Posts: 15Questions: 0Answers: 0
edited August 2009 in General
Hello! What would be the best way to adjust the height of a parent with dataTables? At this moment the parent- doesn't follow the tables. Thank you!

Replies

  • allanallan Posts: 63,578Questions: 1Answers: 10,483 Site admin
    Hi korsakov,

    Has your DIV element of a fixed height on it? The element size should change with the height of the table as long as it's height: auto (and not overflow hidden etc). Also the table can't be position: absolute. All CSS fun... Perhaps best to have a bit of a poke around with Firebug!

    Regards,
    Allan
  • Christian BonatoChristian Bonato Posts: 18Questions: 0Answers: 0
    edited August 2009
    Hello,

    Aren't divs elastic by nature ? Maybe your parent div height is fixed in your css... Did you try creating a new div with a different id and place the table into it ? Is there something in the css that prevent all of your divs to be elastic ? Or a jquery function ?
  • allanallan Posts: 63,578Questions: 1Answers: 10,483 Site admin
    Hi,

    Yes indeed they are. I think I did fix the height in my demo CSS to stop things jumping around a bit. But my CSS is just that - a demo :-). Please hack it around and customise it as needed! As I say, a poke around with Firebug is probably the best bet.

    Regards,
    Allan
This discussion has been closed.