Page 1 of 1

Fixed Height

Posted: Thu Oct 19, 2006 2:48 am
by JellyFish
I have this table with text and stuff in it. And its width is 100% and I want all its contents to stay the way they are when the browser window is shrunk. The problem I'm having is that the text that should say

"about us"

when the browsers shrunk says

"about
us"

and thus the tables height grows. So I figure if I can get the table to a fixed height where when the browser shrinks the height remains the same then I'd solve my problem. But now the question is how do I get the table to stay a certain height???

Posted: Thu Oct 19, 2006 6:25 am
by Chris Corbyn
In FF if you set the position to relative and give it a height then it will never change height. In IE (as usual) the behaviour is incorrect and it stretches block-level elements if the content grows. You can use overflow:hidden to stop that I believe.

IE + Box Model = *&~#''(&^$%

Posted: Thu Oct 19, 2006 10:09 am
by Luke
also, if you don't want text to break, use a non-breakable space character...

Code: Select all

about us