Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html-a table beneath another table 1

Status
Not open for further replies.

tempo1

Programmer
Feb 20, 2007
118
Hi everyone,
I'd like to create a page where there are 2 tables. The lower table should be beneath the upper table. My code:
Code:
<html>
  <head>
    <title>
      his family
    </title>
  </head>
<body background="../simpsons/1_1.jpg">
  <p> 
    <table align="left" width="45%" height="100" border="5">
      <tr>
        <td>
          
            
       </td>
     </tr>
   </table>
 </p>

 <p>
   <table align="left" border="5" width="55%" height="100">
     <tr>
       <td>
         
       </td>
     </tr>
   </table
 </p>


</body>
</html>
yields a table aside the other table rather than one beneath the other.
an anyone show me how to do that ?
Thanks.
 
Remove the <p> tags wrapping the tables (they are not required). Either set the width of the tables to be 100% or place a <br/> between the tables.

Cheers,
Jeff


[tt]Jeff's Page [!]@[/!] Code Couch
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Make sure you removed the paragraphs as well. Paragraphs are block level elements, but they should not hold other block level elements.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top