Q695 Posted July 10, 2009 Share Posted July 10, 2009 I have some cells that will expand, or contract based on user choices, and I was wondering how to have it choose the height on it's own depending on the length required to bunch up all the cell data to be of that height. Think compact text. Does this make sense??? Can it be done in a TD??? Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/ Share on other sites More sharing options...
TheFilmGod Posted July 10, 2009 Share Posted July 10, 2009 huh? Is this tabular data. Sounds like it would be a piece of cake with css. Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-872450 Share on other sites More sharing options...
Q695 Posted July 10, 2009 Author Share Posted July 10, 2009 The bottom cell is needed to push the other cells upward. If this is a cakewalk, how can I do it? Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-872452 Share on other sites More sharing options...
Q695 Posted July 10, 2009 Author Share Posted July 10, 2009 Is there a way to use a div tag as the vertical spacer? Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-872519 Share on other sites More sharing options...
littlevisuals Posted July 12, 2009 Share Posted July 12, 2009 If you have margin-right:10px which will give a spacer maybe? Don't understand what you sort of data you have. Usually choose a fixed height bigger than the font, then add padding and width set to auto. e.g .cell { font-size: 14px; height: 20px; width: auto; padding: 2px; } or something like that If this isnt right, post the data Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-874212 Share on other sites More sharing options...
TheFilmGod Posted July 13, 2009 Share Posted July 13, 2009 Quote I have some cells that will expand, or contract based on user choices, and I was wondering how to have it choose the height on it's own depending on the length required to bunch up all the cell data to be of that height. Think compact text. Does this make sense??? Can it be done in a TD??? Why would you even want to do this? Sounds pretty amateur-like. And no - you'll probably need to use javascript for this. Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-874299 Share on other sites More sharing options...
Q695 Posted July 13, 2009 Author Share Posted July 13, 2009 It's being pulled from a database to allow a user to manipulate their own interfact to some degree, so that people can view it as more user friendly, because someone might want 1 section always open, and someone else might want all the sections always open. Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-874302 Share on other sites More sharing options...
Q695 Posted July 13, 2009 Author Share Posted July 13, 2009 I'm trying to avoid things like the attached example in particular areas that are happening with TD. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/165425-cell-height-random/#findComment-874307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.