Page 1 of 1

why is my IFRAME going like this???

Posted: Tue Jan 06, 2004 2:49 pm
by toms100
look at the following site im making: http://www.28gauntroad.com
It shows up fine in mozilla, but in IE not only does the scroll bar not get coloured correctly, but it has a bottom scroll bar!
i cannot see how it is getting there...
heres the source for you:

Index.php

Code: Select all

<TD WIDTH=550 HEIGHT=490 align="center" valign="center" bgcolor="#000000">
	  <table width="540" height="480" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
		  <iframe src="inc/news.php" name="mainpg" width="540" marginwidth="0" height="480" marginheight="0" frameborder="0"></iframe>
		  </td>
        </tr>
      </table>
	  </TD>
News.php:

Code: Select all

<?php
include("../inc/functions.php");
$db = new DbClass();
$db->connectdb();
$sql = "select * from news order by ID DESC";
$r = $db->exe($sql);
while ($news = mysql_fetch_array($r)) {
?>


<table width="480"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bordercolor="#ECE9D8" class="titlebox"><?php echo $news['subject']; ?></td>
  </tr>
  <tr>
    <td class="info">- <?php echo date("F j, Y, g:i a",$news['date']); ?> by <?php echo $news['by']; ?> </td>
  </tr>
  <tr>
    <td><?php echo nl2br($news['body']); ?>
	</td>
  </tr>
</table>
<br>
<?php
}
?>
Edit: removed some of the non relevent code

Hope someone can help me:)

many thanks

Tom

Posted: Tue Jan 06, 2004 3:59 pm
by basdog22
i may be wrong but i think it is the way each browser gets the metric system you use.

try %'s instead.

Posted: Tue Jan 06, 2004 4:04 pm
by Dale
Yeah, do what basdog22 said. Dont do measurements in pixels but do it in % (It works fine on all browsers and screen resolutions :D)

Posted: Tue Jan 06, 2004 5:55 pm
by uberpolak
As for the coloured scrollbars, that's an IE-only thing.