Web Hosting Talk







View Full Version : Help. I can't get a static cell height.


Qacer
11-19-2003, 11:01 PM
Hey all,

I'm working on a class project. My site is: Here (http://www.dionson.com/spintronics) . Notice the Fun Facts box. I can't seem to get that cell height to stay put. The cell (surrounded by the purple border) always resizes according to the contents of the main table. Notice the first page. The cell height is just right. But then you go to the other pages such as Overview, Magnetism, or Electron Spin and its height increases.

How do I make this cell height stay put? I've tried various tricks such as adding a table in the bottom cell that has a 90% height. This trick used to work, but it doesn't seem to work with IE6. I've also tried adding a blank / spacer image in the bottom cell with a variable height set to 90%. It still doesn't work. I tried specifically hard coding the height to 150 px, but it still changes.

Any tips? Thanks!

digitok
11-20-2003, 01:46 AM
It's because you've got the fun facts td in the same table as the main contents td, it's always going to stretch to fit it...

You could do something like this:
http://digitok.isleet.net/bored/funfacts.html

Rich2k
11-20-2003, 06:57 AM
Height attribute on a table is not a valid HTML attribute. Don't use it.

digitok
11-20-2003, 09:39 AM
Who are you directing that to? I never used a height attribute on the table in my example.