Jump to content

[SOLVED] Problem with php use <div> and <table>


jipo

Recommended Posts

i create an index.php that have 2 columns.

At first columns, I have a link to  index.php?do=inbox

 

At second columns, I have a code :

if ($_GET['do']=="inbox"){
include "./x/sample.php";
}

 

The code in x/sample.php :

<div style="width:775px;height:150px;overflow-y:auto;overflow-x:auto;border:1px solid black;">
<table width="300" border="1">
    <tr>
      <th scope="col">1</th>
      <th scope="col">2</th>
      <th scope="col">3</th>
      <th scope="col">4</th>
    </tr>
  </table>
  </div>

 

The problem is the table is outside the <div> when I open it through index.php?do=inbox

But when I open it from localhost/test/x/sample.php, the table inside the <div>.

I very confuse with this problem... ???

Someone can help me ? Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.