IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Setting A Maximum Table Height


beeseven
no avatar
Privileged Member
*********
Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post #1 post Apr 9 2005, 02:05 AM
How do I set a maximum table height? I tried height and max-height but neither worked. I need to have it a certain height because more than that height it adds a vertical scrollbar, which adds a horizontal scrollbar because I have an image that's pushing it.

beeseven.trap17.com I want the table that the updates are in to be a certain height with a scrollbar there instead of making it above the page length and adding a main scrollbar.
Go to the top of the page
+Quote Post
grovealum
no avatar
Newbie
*
Group: Members
Posts: 6
Joined: 8-April 05
Member No.: 5,389



Post #2 post Apr 9 2005, 02:37 AM
In all of the browsers I'm familiar with, you don't have control over any maximum parameters in a table. If the image or text you inserted in a table is larger than a cell or table height/width, the table will stretch to accommodate it.

The HTML code you are looking for is not a table. The only way to add scroll bars is with a frame.

One possible option would be making your home page a frameset & putting the navigation buttons in the top frame & the updates in the bottom frame.
http://www.htmlhelp.com/design/frames/usage/


The solution I think you are really looking for is called an inline frame.
http://www.htmlhelp.com/reference/html40/special/iframe.html
Go to the top of the page
+Quote Post
no9t9
no avatar
Privileged Member
*********
Group: Members
Posts: 773
Joined: 4-November 04
Member No.: 2,118



Post #3 post Apr 9 2005, 03:07 AM
max-height or max-width exist but are not supported by many browsers. I think only opera supports those (don't quote me on that though).

anyway, the way I see your post is this... You are asking 2 things.
1. you have an image that you dont want to scroll (image is in a table cell).
2. You want your text in your news section to scroll but not the page.

answers
1. if you have an image inside a table and you don't want scrollbars, put everything in the table cell inside a div.
Example:
<table><tr><td>
<div style="overflow:hidden;width:10px;height:10px">
<img src="yourpic.jpg"></div></td></tr></table>

Change the width and height to the size of the picture. The overflow:hidden removes scroll bars (just in that area and not the whole page).

2. To get a scroll bar just for your news section, you use DIV's again.
Example:
<div style="overflow:auto;height:400px;width:400px">
Your news and junk
</div>

This will make a box with width 400 and height 400 pixels. The scroll bar shows up only if the text is longer than 400 pixels.
Go to the top of the page
+Quote Post
beeseven
no avatar
Privileged Member
*********
Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post #4 post Apr 9 2005, 10:02 PM
Overflow:auto + width and height worked, but I had to make the height absolute. Is it possible to use a percentage with height?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 noxit 2,497 20th June 2004 - 02:06 PM
Last post by: noxit
No New Posts   5 SilverBoarder 685 27th August 2004 - 04:15 AM
Last post by: zip_mc
No New Posts   2 Eric Straven 388 8th September 2004 - 02:57 PM
Last post by: ZorBiX
No New Posts   2 wassie 630 10th September 2004 - 11:00 PM
Last post by: Seņor Maniac
No New Posts   0 anwiii 674 14th June 2006 - 08:44 AM
Last post by: anwiii
No New Posts   8 fffanatics 649 6th February 2008 - 05:34 PM
Last post by: karlosantana
No New Posts   2 Inty 384 3rd October 2004 - 11:17 AM
Last post by: mobileunlocking
No New Posts   5 -prodigy- 354 6th October 2004 - 06:37 AM
Last post by: -prodigy-
No New Posts   3 s2city 391 10th October 2004 - 07:44 PM
Last post by: s2city
No New Posts   6 tdktank59 489 21st November 2007 - 08:19 PM
Last post by: tdktank59
No New Posts   1 faceofdie 661 17th November 2004 - 06:47 PM
Last post by: serverph
No New Posts   6 cragllo 660 29th December 2004 - 12:35 PM
Last post by: splehati
No New Posts   8 gotcha41 681 24th January 2005 - 07:20 PM
Last post by: bjrn
No New Posts   9 SandysDad 512 2nd March 2008 - 07:37 AM
Last post by: alex7h3pr0gr4m3r
No New Posts 6 OpaQue 3,660 29th August 2008 - 01:50 PM
Last post by: travstatesmen


 



RSS Open Discussion Time is now: 7th January 2009 - 07:28 PM