Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
"100% Heigth Table" Problems
Old 08-11-2005, 11:35 AM "100% Heigth Table" Problems
Novice Talker

Posts: 9
Trades: 0
Greetings...I need to make a 100% heigth table (with the upper and lower cells also at 100% Heigth)... I thought I knew how to do it in Dreamweaver (and it works in the program), but when I'm previewing in a browser, the heigth of the table doeesn't reach 100% (is less)

How do I fix this?

Here's my HTML page, code:





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.:: ARLAB ::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #768EBA;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>

<div align="center">
<table width="740" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="principal">
<tr align="center">
<td width="600" height="100%" valign="top">&nbsp;</td>
<td width="82" height="100%" valign="top" background="imagens/faixa.gif">&nbsp;</td>
<td width="58" height="100%" valign="top">&nbsp;</td>
</tr>
<tr>
<td width="740" height="420" colspan="3" align="center" valign="middle">&nbsp;</td>
</tr>
<tr align="center">
<td width="600" height="100%" valign="bottom">&nbsp;</td>
<td width="82" height="100%" valign="bottom" background="imagens/faixa.gif">&nbsp;</td>
<td width="58" height="100%" valign="bottom">&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>



Please, HELP me, fast!!!

Thanks



BTW, is cell background image a well-suported feature? 'Cause Dreamweaver tells me it isn't suported by Netscape and Mozilla...
arlab is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-11-2005, 04:37 PM
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
Put this in the head of your page and try it again:

<style type="text/css">
<!--
body { margin: 0; padding:0; }
-->
</style>
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
Old 08-12-2005, 11:34 AM
Novice Talker

Posts: 9
Trades: 0
I have. But still no stretching... But I've tried to make a single 100% heigth table... No stretching either...

There must be something wrong with Dreamweaver!!!... Or me..
arlab is offline
Reply With Quote
View Public Profile
 
Old 08-12-2005, 12:01 PM
Novice Talker

Posts: 9
Trades: 0
Here's what Murray *TMM* has told me (from Macromedia Support Forums):

"Remove the doctype.
Here's the deal.
A doctype on an HTML page tells the browser how to render the page. If
there is no doctype, or if there is an invalid one, the page is rendered in
quirks mode. If there is a valid doctype, the page is rendered in standards
mode.
In quirks mode, the browser makes an attempt to render invalid HTML. Not
all browsers attempt the same rendering - so you will see a variety of
differences, comparing one browser to the next on the same page.
In standards mode, the browsers all render the same (so they say - but in
practice, while not true, it's much more uniform).
Table height is invalid HTML. It always has been - it was never a part of
HTML's specs.
Browsers in quirks mode will try to render table heights. Browsers in
standards mode willl not.
Geddit?"


Here's my Reply (so that YOU can reply to me too:

"THX for answering...
I understood what you said..

So, my page's HTML would start with:


<html>
<head>
....


Right?

But I've tried that and still no effect... No 100% heigth (it happens in Dreamweaver's window, but not in my browsers...).

I dunno why this happens... I've seen a lot of 100% heigth tables that work in my browsers...

How must I do this exactly? Please help me



BTW, is cell background image a well-suported feature? 'Cause Dreamweaver
tells me it isn't suported by Netscape and Mozilla..."


SpiralFire... Can you help me?
arlab is offline
Reply With Quote
View Public Profile
 
Old 08-12-2005, 01:21 PM
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
Try This:


<html>

<head>
<title>No title</title>
</head>
<head>
<style type="text/css">
<!--
body { margin: 0; padding:0; }
-->
</style>
</head>

<body bgcolor="#768EBA" text="black" link="blue" vlink="purple" alink="red">
<table width="740" align="center" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td width="600">&nbsp;</td>
<td width="82">&nbsp;</td>
<td width="58">&nbsp;</td>
</tr>
<tr>
<td width="1141" colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="600">&nbsp;</td>
<td width="82">&nbsp;</td>
<td width="58">&nbsp;</td>
</tr>
</table>
</body>

</html>
__________________

Please login or register to view this content. Registration is FREE

Last edited by spiralfive; 08-12-2005 at 01:30 PM..
spiralfive is offline
Reply With Quote
View Public Profile
 
Old 08-12-2005, 04:39 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
off-topic: Pretty please use the code tags when pasting code in your posts. thank you.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 08-13-2005, 10:19 AM
Novice Talker

Posts: 9
Trades: 0
Nope... Still no effect... I don't get it... It seems this can only be done with Javascript or other language... DUnno... Well, I may learn one of these later... Thanks anyway...
arlab is offline
Reply With Quote
View Public Profile
 
Old 08-13-2005, 01:03 PM
Novice Talker

Posts: 9
Trades: 0
I was wrong... If I take out "DOCTYPE, etc..." from my code, my web-page will appear at 100% heigth... But only at IExplorer... In my main browser (Opera 6.0) it doesn't...


It seems I chose a hard path... I shouldn't have messed with 100% heigth tables

Anyway, here's what I'm trying to do:


<-------------------------------Width = 740 px, Centered------------------------------->

__________________________________________________ _________
|................................................. ..................|.........................|..... ...................|
|....Table that stretches untill it reaches.........|..........idem........|.......... .idem......|
|.............the top of the browser's window.....|..Width = 82 px..|..Width = 58 px..|
|.....................Width = 600 px.......................|........................ .|........................|
|__________________________________ |_____________ |___________|
|................................................. .................................................. .................|
|................................................. .................................................. .................|
|................................................. ....Main Table............................................. ...|
|........Centered in the browser's window.... (Centered in Heigth and Width)..........|
|................................................. .................................................. .................|
|............................Fixed Width = 740 px; Fixed Heigth = 420 px.......................|
|................................................. .................................................. .................|
|................................................. .................................................. .................|
|_________________________________________________ ________|
|................................................. ..................|.........................|..... ...................|
|....Table that stretches untill it reaches.........|..........idem........|.......... .idem......|
|..........the bottom of the browser's window..|..Width = 82 px..|..Width = 58 px..|
|.....................Width = 600 px.......................|........................ .|........................|
|__________________________________ |_____________ |___________|



The cells above and on top of the Main Table, should appear only if necessary, just



The cells above and on top of the Main Table, should appear only if necessary, just to make sure the WHOLE table (the Main and the others) ocuppies the total heigth of the browser's window...

This isn't too hard to make, right? :confused;

Anyone knows of a better way to do this (check the initial post of this topic to see my fisrt try (it works in Dreamweavers's Windows, but not in browsers...)?

If someone could post code for this "Template" I would apreciate A LOT!!! Since I dunno Javascript nor PHP (ASP is a bit slow... but I don't know it either... ... and Flash is a bit too incompatible). A link to a URL of a tutorial of this kind (I don't want to think to much... Just change the number of pixels ) would be nice too...

Thanks....

BTW, with XHTML, is this easy to do? Are 100% heigth tables compatible with it?

Last edited by arlab; 08-13-2005 at 01:12 PM..
arlab is offline
Reply With Quote
View Public Profile
 
Old 08-13-2005, 03:55 PM
spiralfive's Avatar
Skilled Talker

Posts: 63
Trades: 0
You know, honestly I do not think that this is possible. If you use % for the table you also have to use it with the cells, that's why it won't work in Firefox. I have an idea though, how's about creating a table 100% high, 740-p wide,two 10% high cells, and one %80 center. Then insert another table into the top and bottom with fixed width, etc. and alight the cells top and bottom respectively, and place another table within the center cell with fixed width. Anyway, visit here. I'm trying to promote my forum.
__________________

Please login or register to view this content. Registration is FREE
spiralfive is offline
Reply With Quote
View Public Profile
 
Old 08-14-2005, 09:02 AM
Novice Talker

Posts: 9
Trades: 0
Yeah... the way I'm making things it won't work (in every browsers, at least)...
I'll make things normally, and maybe later I'll worry about that... I'll read a bit of PHP...
arlab is offline
Reply With Quote
View Public Profile
 
Old 08-17-2005, 07:39 AM
Novice Talker

Posts: 9
Trades: 0
100% Height IS VALID!!!!!

It's true!!

Check this site !!!

Thanks to Tim (TC2112), a Macromedia Dreamweaver General Discussion Forum NewsGroup User...

Finally, my problem is solved!!!
arlab is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to "100% Heigth Table" Problems
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33827 seconds with 12 queries