Jump to content

[SOLVED] Firefox messing up a table


mark110384

Recommended Posts

Hey guys I think I have a problem with my coding, the layout works fine in IE but in Firefox I have issues. The DIV table stretches beyond the page thus making the user have to scroll, but in IE  it fits perfectly in the middle of the page, it'll probaly be some kinda school boy error on my part but any comments would be apreciated.

 

 

The PHP, JS and HTML

  <div  id="brochures">

        <table width="99%" border="1" background="download_bg.bmp">

          <tr>

            <td height="16"><table width="100%" border="1" cellspacing="0" cellpadding="0">

                <tr>

                  <td height="42">Spacer</td>

                </tr>

                <tr>

                  <td height="56"><table width="100%" border="1" cellspacing="0" cellpadding="0">

                      <tr>

                        <td width="40%"><font face="lucida sans" size="2">Select

                          a <b>Brochure</b> to view</font></td>

                        <td width="60%"> </td>

                      </tr>

                      <tr>

                        <td> </td>

                        <td>

                          <?

 

$sql = "SELECT * FROM drawings ORDER BY drawing_id";

 

$result = mysql_query($sql) or die  ("Data not found");

 

while($myrow = mysql_fetch_array($result))

{

$drawingid = $myrow['drawing_id'];

 

$drawingtitle = $myrow['drawing_title'];

 

$drawingurl = $myrow['drawing_url'];

 

 

  ?>

                           <font face="Lucida sans" size="1" color="#000000">

                          <?

echo "<a class='navi_text' href=$drawingurl>$drawingid - $drawingtitle</a></br>"; ?>

                          </font></a>

                          <?

}  

?>

                        </td>

                      </tr>

                    </table></td>

                </tr>

                <tr>

                  <td></td>

                </tr>

                <tr>

                  <td height="57">Bottom Image</td>

                </tr>

              </table></td>

          </tr>

        </table>

      </div>

 

 

CSS

 

#brochures

{

 

position: absolute;

top: 55%;

left: 17%;

width: 100%;

height: 681px;

visibility: hidden;

 

}

Link to comment
https://forums.phpfreaks.com/topic/119267-solved-firefox-messing-up-a-table/
Share on other sites

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.