Table sizing problem

This is a discussion on "Table sizing problem" within the Web Page Design section. This forum, and the thread "Table sizing problem 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 Jan 5th, 2006, 21:13
Junior Member
Join Date: Aug 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Table sizing problem

Well, I don't have a link to my page, but I got rid of all the images and such, and put in some borders to make it easier to understand, and took a screenshot.
http://67.18.37.18/1003/49/upload/p3407516.gif
And, of course, my html code and css.
HTML: Select all
<html>
<head>
<link rel=stylesheet href="templateCSS.css" type="text/css">
<title>DURT Web Site Template</title>
</head>
<body bgcolor=#FFFFFF>
<table class=template>
<tr><td class=mainhead colspan=2>Main Head</td></tr>
<tc><td class=menuhead>Menu Head</td></tc>
<tc><td class=mainbody rowspan=4 height=102>
<table class=maincontent><tr><td>
Main Body
</td></tr></table></td></tc>
<tr><td class=menubody height=12>
<table class=menucontent><tr><td>
Menu Body
</td></tr></table></td></tr>
<tr><td class=menufoot>Menu Foot</td></tr>
<tr><td class=menublnk height=12>Menu Blank</td></tr>
<tr><td class=mainfoot colspan=2>Main Foot</td></tr>
</table>
</body>
</html>
Code: Select all
<style type="text/css">
table.maincontent {width: 97%; background: none; border-style: none;
                   border-collapse: collapse; border-spacing: 0px;
                   padding: 0px; margin: 4px 0px 5px 10px}
table.menucontent {width: 68%; background: none; border-style: none;
                   border-collapse: collapse; border-spacing: 0px;
                   padding: 0px; margin: 3px 0px 5px 18px}
table.maincontent tr, table.menucontent tr,
table.maincontent td, table.menucontent td {padding: 0px;}
table.template {width=800; background: none;
                border-style: solid; border-size: 2px; border-color: #FF0000; padding: 0px}
table.subtemplate {background: none;
                   border-style: solid; border-size: 2px; border-color: #FF0000; padding: 0px}
table.template tr, table.template tc {padding: 0px}
td.mainhead {background-image: url(headbar.gif); height: 95px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.mainbody {background-image: url(mainbg.gif);  width: 630px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.mainfoot {background-image: url(footbar.gif); height: 93px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.menuhead {background-image: url(subheadbar.gif); width: 170px; height:  39px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.menubody {background-image: url(subbg.gif);      width: 170px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.menufoot {background-image: url(subfootbar.gif); width: 170px; height:  39px; padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
td.menublnk {background-image: url(subblank.gif);   width: 170px; height: 20px;  padding: 0px;
             border-style: solid; border-size: 2px; border-color: #0000FF;}
</style>
Again, I took the images out, but based on those images, the Menu Head and Menu Foot sections have to be 39 pixels high or the image repeats. The Main and Menu Body sections are where text goes, and I've figured out that Menu Body will only need to be 160 pixels high. The problem is that when Main Body is higher than 238 pixels (39 + 39 + 160), rather than stretch Menu Blank, the browser stretches the other three menu parts and puts Menu Blank at 1 pixel, even when I specifically define the height of the other three. Note that this is not the case in the screenshot I gave. Is there some way I could force the browser to stretch only Menu Blank, or is there some way I could calculate what height exactly it needs to be and php it in?

Last edited by Jaken Veina; Jan 5th, 2006 at 21:23.
Reply With Quote

  #2 (permalink)  
Old Jan 6th, 2006, 22:06
Junior Member
Join Date: Aug 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Table sizing problem

Nevermind. I managed to rearrange things so that no longer presents a problem. I took the first three Menu sections, put them inside Menu Blank, and aligned them to the top. Rather than have Menu Blank fill in the blank menu space, it fills in the entire space, and the other parts of the menu cover it up. All the images fit together perfectly.
Reply With Quote
Reply

Tags
table, sizing, problem

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
Iframe / Table Problem.... help me!!! bigbluesky2006 Web Page Design 4 Dec 16th, 2006 10:59
Table conversion problem dartiss Web Page Design 9 Jul 26th, 2006 17:42
Table Problem? ivan Web Page Design 8 Mar 1st, 2006 09:31
CSS and Table problem lisnalinchy Web Page Design 10 Aug 3rd, 2005 09:54
Expandable Table Problem legomaniac Web Page Design 3 Jul 15th, 2005 14:16


All times are GMT. The time now is 21:13.


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