There is a page . According to the code, the table with id = main should contain all these divs, but in the browser all tables fall to the end.

<?php session_start(); echo ' <html> <head> <title>Докажи.РУ</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript" src="custom.js"></script> <script type="text/javascript" src="aj.js"></script> <link href="main.css" rel="stylesheet" type="text/css" /> <link href="main2.css" rel="stylesheet" type="text/css" /> </head> <body> <table id="top"> <tr><td> <div id="userst">'; include('inc1.php'); $log = $_GET['log']; if($log==1){ session_destroy(); header("Refresh: 0;URL='http://dokazi.ru/'"); } echo ' </div> </td></tr> </table> <table id="maint"> <tr><div id ="toper"></div></tr> <tr><div id="center"> <div id="usloviye"> <table id="of" border="1"> <tr><td colspan="2"> </td> </tr> <tr> <td>lol</td> <td>lol</td> </tr> </table> </div> <div id="plus"></div> <div id="minus"></div> </div></tr> <tr><div id="foot"></div></tr> </table> '; include('inc3.php'); echo ' </body> </html>'; ?> 

    1 answer 1

    Third: comments are formatted as <! - ->

    Second, the <table> <tr> <td> </ td> </ tr> </ table> sequence is required. <td> cannot be "lost". A piece of the corrected code, see below.

    First of all, they do not make it like that. If you use a div, then they do not need to be enclosed in a table (especially so). Column (one under the other), they line up without any effort))

    If you KNOW and UNDERSTAND how to typeset tables - make tables. It is considered to be "not cool", but no one said it was impossible.

     <table id="maint"> <tr> <td><div id ="toper"></div></td> </tr> <tr> <td><div id="center"> <!-- здесь начинается место для формулировки цвет ffcc00 --> <div id="usloviye"> <table id="of" border="1"> <tr> <td colspan="2"></td> </tr> <tr> <td>lol</td> <td>lol</td> </tr> </table> </div> <!-- здесь оканчивается место для формулировки цвет ffcc00 !--> <!-- доква цвет ? зеленоватый !--> <div id="plus"></div> <!-- конец доква --> <!-- опров цвет ? розоватый --> <div id="minus"></div> <!-- конец опров --> </div> </td> </tr> <tr><td><div id="foot"></div></td></tr> </table>