How to constrain the height of a dynamic table

This is a discussion on "How to constrain the height of a dynamic table" within the Web Page Design section. This forum, and the thread "How to constrain the height of a dynamic table are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 14th, 2008, 14:13
New Member
Join Date: Mar 2008
Location: states
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How to constrain the height of a dynamic table

Hello,

I'm having a bit of trouble keeping a table at a fixed height. What I have is a Small 200x80px table above my an input form. As users type data into the input form, javascript code dynamicly updates the contents of the table. I have the table width properly fixed, and the input fields have character limitations... however if a user inputs a lot of capital letters or other wide characters, the table automatically increases in height when the text wraps. It's pretty much neccessary that the text wraps for the middle lines of the table, and on the other two lines I have used the javascript to remove wrapping, but I never want the table to grow longer than 80px no matter how much is typed in the fields. Is there a way that I can constrain the table height?

Thanks in advance!
Reply With Quote

  #2 (permalink)  
Old Mar 14th, 2008, 16:16
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,227
Blog Entries: 9
Thanks: 2
Thanked 38 Times in 38 Posts
Re: How to constrain the height of a dynamic table

CSS would help you with that. Maybe overflow: hidden?
__________________
CloudedVision, WebForumz Moderator
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Reply With Quote
  #3 (permalink)  
Old Mar 14th, 2008, 18:10
New Member
Join Date: Mar 2008
Location: states
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to constrain the height of a dynamic table

Hi,

Thanks for the reply! I'm already using overflow: hidden in my stylesheet, and it's doing a fine job of hiding the horizontal overflow. It doesn't seem to effect the vertical overflow, but I'm looking for that exact same effect. Do you have any ideas on ways to do this?

Thanks again!
Reply With Quote
  #4 (permalink)  
Old Mar 15th, 2008, 00:08
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,227
Blog Entries: 9
Thanks: 2
Thanked 38 Times in 38 Posts
Re: How to constrain the height of a dynamic table

you'll have to specify the height to cause verticle overflow
__________________
CloudedVision, WebForumz Moderator
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS - dynamic height div google Web Page Design 39 Dec 4th, 2007 15:33
Table height 100% subhadip Web Page Design 4 Sep 26th, 2007 14:15
How to make a table height equal to the browser height ? subhadip Starting Out 4 Sep 20th, 2007 07:56
Problems making the content area have a dynamic height blizeH Web Page Design 41 Aug 13th, 2007 01:19
Table Height 100% only when refreshed…. mrunclesam Web Page Design 9 Dec 22nd, 2006 15:05


All times are GMT. The time now is 01:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43