Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cellpadding, cellspacing and internet exploror

    I'm having troble with my tables. I want to create a layout, however, Internet Exploror just disregaunds cellspacing and cellpadding
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <meta name="keywords"
     content="canada, pro-canada, canadian, canadian planet, Canada, CANADA, cdn, toronto, vancouver">
      <meta name="description"
     content="The Canadian Planet: A  pro-canada website. This resource contains articles, polls and a forum">
      <meta http-equiv="Content-Type"
     content="text/html; charset=iso-8859-1">
      <link rel="stylesheet" type="text/css" href="style1.css">
      <style type="text/css">
    .submenu{display: none;}
      </style>
      <script type="text/javascript">
    
    /***********************************************
    * Switch Menu script- by Martial B of http://getElementById.com/
    * Modified by Dynamic Drive for format &amp; NS4/IE4 compatibility
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    ////////////////////////// BEGIN SWITCH MENU ////////////////////////////////////////////////////////////////
    
    function SwitchMenu(obj){
    	if(document.getElementById){
    	var el = document.getElementById(obj);
    	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
    		if(el.style.display != "block"){ //DynamicDrive.com change
    			for (var i=0; i<ar.length; i++){
    				if (ar[i].className=="submenu") //DynamicDrive.com change
    				ar[i].style.display = "none";
    			}
    			el.style.display = "block";
    		}else{
    			el.style.display = "none";
    		}
    	}
    }
    
    ///////////////////////// END SWITCH MENU /////////////////////////////////////////////////////////////////.
    
    
    function setHeight() {
    var heightToset = document.getElementById("content").offsetHeight;
    document.getElementById("down").style.height = heightToset;
    }
      </script>
      <title>The Canadian Planet -- A website dedicated to Canada.</title>
    </head>
    <body onload="setHeight()">
    <img src="site_logo_button.gif" alt="The Canadian Planet"> <br>
    <br>
    <table bordor="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td width="140"> <img style="width: 152px; height: 149px;"
     id="corner" src="table_corner.png"> </td>
          <td bgcolor="yellow"> <a href="../forum/index.php"> <img
     src="forums.gif" border="0" alt="Forums"></a>&nbsp; <img
     src="Articles.gif" alt="Articles"> <br>
          <img src="space.gif" height="1" width="800"> </td>
        </tr>
        <tr>
          <td>
          <table bordor="0" cellpadding="0" cellspacing="0" id="down"
     width="50" bgcolor="yellow">
            <tbody>
              <tr>
                <td valign="top"><!-- Keep all menus within masterdiv-->
                <div id="masterdiv">
                <div class="menutitle" onclick="SwitchMenu('sub1')">Site
    Menu</div>
                <span class="submenu" id="sub1"> - <a href="new.htm">What's
    New</a><br>
    - <a href="hot.htm">What's hot</a><br>
    - <a href="revised.htm">Revised Scripts</a><br>
    - <a href="morezone/">More Zone</a> </span>
                <div class="menutitle" onclick="SwitchMenu('sub2')">FAQ/Help</div>
                <span class="submenu" id="sub2"> - <a href="notice.htm">Usage
    Terms</a><br>
    - <a href="faqs.htm">DHTML FAQs</a><br>
    - <a href="help.htm">Scripts FAQs</a> </span>
                <div class="menutitle" onclick="SwitchMenu('sub3')">Search
    articles</div>
                <span class="submenu" id="sub3"> coming soon! </span> </div>
                </td>
              </tr>
            </tbody>
          </table>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="content" id="content">
    <table height="40" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td bgcolor="#000000" background="heading_background.gif"> <font
     color="#ff0000"><b>The Canadian Planet &gt; Home</b></font> </td>
        </tr>
        <tr>
          <td>
          <table bgcolor="#ffffff">
            <tbody>
              <tr>
                <td> This is just a test... Test This is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test...
    TestThis is just a test... TestThis is just a test... TestThis is just
    a test... TestThis is just a test... TestThis is just a test... Test </td>
              </tr>
            </tbody>
          </table>
          </td>
        </tr>
      </tbody>
    </table>
    </div>
    </body>
    </html>

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    London, UK
    Posts
    234
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK two things, people hate tables here, especially nested ones. Use CSS. Its pretty cool if u get to know it. Also, a bit of topic but where you have repeated this is a test... why do I often see the same latin paragraph in places lie that. Anyone know? Thanks but yeah

    Anyways, Its late and so I skimmed your work:

    Its spelt border not bordor maybe thats the problem


  •  

    Posting Permissions

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