Results 1 to 4 of 4

Thread: Table height confusing...

  1. #1

    Thread Starter
    Hyperactive Member Apek's Avatar
    Join Date
    Aug 2002
    Location
    Kg Melayu,2 33 °N,102 10 °E
    Posts
    283

    Table height confusing...

    Below is my HTML code:

    When i view in browser, the height of the table is not full,not 100%,even i have set the height to 100%.I want this page is suit for 800x600 and 1024x768 resolution.
    But the weird is when the page is in design mode(in Dreamweaver or Frontpage), the table height is 100%.
    How to fix this??

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>IT Booking</title>
    <script language="vbscript">
    
    
    </script>
    <style type="text/css">
    <!--
    .style1 {
    	font-family: Arial;
    	color: #FFFFFF;
    	font-size: 10px;
    }
    -->
    </style>
    </head>
    <body>
    
    <table width="100%" height="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" height="10%" bgcolor="#376EBF">&nbsp;</td>
      </tr>
      <tr>
        <td height="20%" align="left" valign="bottom" bgcolor="#69A5FF"><span class="style1">METAL PARTS PLANT </span></td>
      </tr>
      <tr>
        <td  bgcolor="#428CFB" height="40%">
    		<table border="0" cellspacing="0" width="100%" id="AutoNumber3" cellpadding="5">
                <tr>
                  <td width="100%">
    			  <div align="right">
                      <form name="testuser" method="post" action="checkuser.asp">
                       <table border="0" cellspacing="0"  width="300" id="AutoNumber4" cellpadding="3">
                        <tr>
                          <td width="101">
                            <span style="font-family: Arial">
                            <font style="font-size: 9pt" color="#D2E9FF">User Name : </font></span></td>
                          <td width="187">
                          <input type="text" name="user" size="27" tabindex="1"></td>
    	
                        </tr>
                        <tr>
                          <td width="101">
                            <span style="font-family: Arial">
                            <font style="font-size: 9pt" color="#D2E9FF">Password : </font></span></td>
                          <td width="187">
                          <input type="password" name="txtPwd" size="27" tabindex="2"></td>
                        </tr>
                        <tr>
                          <td width="294" colspan="2">
                          <p align="right"><img src="button/login.gif" width="77" height="15" border="0" onClick="login()"></td>
                        </tr>
    					
                      </table>
    				  </form>
                    </div>
                  </td>
                </tr>
          </table>
    	</td>  
      </tr>
      <tr>
        <td bgcolor="#69A5FF" height="20%">&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#376EBF" height="10%">&nbsp;</td>
      </tr>
    </table>
    
    </body>
    </html>
    "The reason you see open source there at all is because we came in and said there should be a platform that's identical with millions and millions of machines."
    Get it HERE


    Regards..
    Apek

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Table height confusing...

    It's invalid code.

    Read this, nice article:

    http://www.apptools.com/examples/tableheight.php

  3. #3

    Thread Starter
    Hyperactive Member Apek's Avatar
    Join Date
    Aug 2002
    Location
    Kg Melayu,2 33 °N,102 10 °E
    Posts
    283

    Re: Table height confusing...

    wrong code?
    but it was generated by Dreamweaver..so Dreamweaver generate wrong code?Pheww...
    "The reason you see open source there at all is because we came in and said there should be a platform that's identical with millions and millions of machines."
    Get it HERE


    Regards..
    Apek

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Table height confusing...

    Yes, dreamweaver generated wrong code. Use notepad instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width