Jump to content

cell height random


Q695

Recommended Posts

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

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

  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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.