Fixed Height

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Fixed Height

Post 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???
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 = *&~#''(&^$%
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

also, if you don't want text to break, use a non-breakable space character...

Code: Select all

about us
Post Reply