Jump to content

table TD height - FIXED ?


lvertel

Recommended Posts

hello

 

simple question but yet impossible for me to find a solution :

 

i have a php script, that shows me data in TABLE , so in the end, i have let's say, 10 rows in 10 tables...

 

however, the data(text) inside of each text is of different size, and according to that, my TD is changing it's height.

 

I did put the td height = 100, but the text that php generates, makes the TD higher.

 

How could i make the TD height FIXED, no matter what amount of content there is in the TD??

Link to comment
https://forums.phpfreaks.com/topic/202875-table-td-height-fixed/
Share on other sites

Well, I've never tried the overflow on a <td> element, so maybe that's the problem. OK, try this: put a <div> inside the <td> and add that style to the div, and put your content into the div.

 

great, it is working ... but only on IE

 

FIREFOX and CHROME are still the problem. any other solution ?

 

here is the example :

 

http://eventy.ch/events.php?category=all

 

u can see that CINEMA RIALTO LOCARNO is more then the 55px i've set up for height

 

however, in IE it is showin good!

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.