|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
no scroll bars
hi im using iframes and the page that is loaded into the iframes needed a scroller. Below is the code im using.
Code:
;<iframe width="98%" height="96%" src="main.php" frameborder="0" name="main" scrolling="Yes"></iframe> It works fine for user's viewing at 800x600 but for user's viewing at 1024x768 the scroll bar doesnt appear. I have tried validating it with the w3c.org validator and it produced no errors so i dont know what is wrong with it. Any answers would be appreciated much. Thanks ~kendo |
|
#2
|
|||
|
|||
|
RE: no scroll bars
Quote:
My guess would be that since the scrollbars are not showing up in 1024x768 that all that can be displayed is being displayed. Nothing is off screen so it isn't putting the scrollbars on to view rest of content. Am I mistaken? Is there content not there that you need to scroll in order to see? |
|
#3
|
||||
|
||||
|
RE: no scroll bars
yeh you are mistaken there is loads of content to be displayed it just doesnt display the scroll bars. But you can use the page down button to go down. This is weird
|
|
#4
|
|||
|
|||
|
RE: no scroll bars
Do you have this page on a server that is accessible to the internet? if so , provide a url so I can go and see this for ourselves. I built some pages on my own and they work fine (scrollbar shows up in 1024x768 as well as 800x600) so until I can recreate the problem, I can't help fix it. If not, post the code for both pages and I will give it a try. Also provide the name of the browser (with version) you are using to view the pages.
|
|
#5
|
||||
|
||||
|
RE: no scroll bars
here is the code:
Code:
Page 1:
<html>
<head>
<title>onlinechat</title>
</head>
<bodylink="#000000" vlink="#000000" alink="#000000">
<body bgcolor="#00CCFF"><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="702" height="554" background="Habboxlayout.gif">
<tr>
<td width="698" height="110" align="left" valign="top" colspan="5">
<p> <img border="0" src="logo2.gif" width="137" height="45"></p>
</td>
</tr>
<tr>
<td width="698" height="33" align="left" valign="top" colspan="5">
</td>
</tr>
<tr>
<td width="161" height="474" align="left" valign="top">
<p align="center"><font face="Verdana" size="1"><b>
</b></font></td>
<td width="179" height="474" align="left" valign="top"><iframe width="98%" height="96%" src="nav.php" frameborder="0" name="nav" scrolling="no"></iframe> </td>
<td width="29" height="474" align="left" valign="top"> </td>
<td width="316" height="474" align="left" valign="top">
<p align="center"> </p>
<p class="MsoBodyText" style="MARGIN-LEFT: 18pt"> <iframe width="98%" height="96%" src="main.php" frameborder="0" name="main" scrolling="yes"></iframe> </td>
<td width="17" height="252" align="left" valign="top">
<p align="center"> </p>
</td>
</tr>
<tr>
<td width="10" height="222" align="left" valign="top"></td>
</tr>
</table>
</div>
</html>
Code:
Page 2:
Welcome to the new site. After being closed for a few weeks we are back with a brilliant new layout. We hope you like it, if not please use our contact form to tell us what you dont like and we will try and change it.
This site provides tips and tricks and how to stay 'safe' in online chat rooms from msn messanger to java chat rooms. Along with the latest news about a vast ammount of new and upcomming chat rooms.
<hr>
<?php include("news/site/news.php"); ?>
|
|
#6
|
|||
|
|||
|
RE: no scroll bars
Ran your code on IE6 and I got the vertical (up and down) scrollbar but not the horizontal scrollbar b(left and right) is this correct? also you never specified what browser you were testing this on.
|
|
#7
|
|||
|
|||
|
RE: no scroll bars
OK, I was able to recreate your problem, and I think it may have to do with the percentages you are using for the size of the iframe... since the iframe is not actually part of the table, the percentages are not really based on a real number so that is probably the reason. If I change the percentages to pixel values (width 300,height,450)I get the scrollbars as expected. I was not able to recreate your exact problem as I did not get scrollbars in either 800x600 or 1024x768, but putting in the pixel values fix the problem in both resolutions.
|
|
#8
|
||||
|
||||
|
RE: no scroll bars
ok thanks for all the help.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > no scroll bars |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|