why is my IFRAME going like this???

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

why is my IFRAME going like this???

Post 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
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

i may be wrong but i think it is the way each browser gets the metric system you use.

try %'s instead.
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post 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)
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

As for the coloured scrollbars, that's an IE-only thing.
Post Reply