Forum Moderators: open

Message Too Old, No Replies

argh frames

why does my main frame have a bottom scroller

         

natty

11:24 am on Jun 21, 2004 (gmt 0)

10+ Year Member



i have a framed page, code to follow, all is well apart from ..
when i have a large table (set to 95% width) in the main frame i get a bottom scroller...
taken all margins/padding out of the css. completely stumped i am, even if i lower the % width i still get it

frame page


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Frame Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="75,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="banner.asp" name="banner" scrolling="no" noresize="noresize">
<frameset cols="110,*" frameborder="no" border="0" framespacing="0">
<frame src="menu.asp" name="leftFrame" scrolling="no" noresize="noresize">
<frame src="main.asp" name="mainFrame">
</frameset>
</frameset>
<noframes>
...

menu.asp is fairly straigtforward and nps there anyhow..
here is one of the tables in the main frame


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
....blah...
<body>
<table ><tr>
<td colspan="5" class="nocursor" style="border-bottom:0;"><strong>2003</strong></td><td class="nocursor" align="center" colspan="5"><strong>Information Assuming Euro</strong></td><tr><td class="nocursor"><strong>Ref</strong></td>
<td class="nocursor"><strong>Submitted</strong></td>
<td class="nocursor"><strong>Country</strong></td>
<td class="nocursor" align="right"><strong>Claim Amount</strong></td>
<td class="nocursor" align="right"><strong> Exchange Rate</strong></td>
<td class="nocursor" align="right"><strong>Claimed</strong></td>
<td class="nocursor" align="right"><strong>Adjustment</strong></td>
<td class="nocursor" align="right"><strong>Refunded</strong></td>
<td class="nocursor" align="right"><strong>Rejected</strong></td>
<td class="nocursor" align="right"><strong>Outstanding</strong></td>
</tr>
<tr id="tr0" onclick="javascript:changeBG(this); [red]/n[/red]
top.banner.holdCurrentSelection('****','****xx','****x/xx','18','2003','x','Name','name','UK',0); ">
<td width="10%">SE7230/03</td>
<td width="10%">08/06/04</td>
<td width="10%">Sweden</td>
<td width="10%" align="right">15,626</td>
<td width="10%" align="right">9.079</td>
<td width="10%" align="right">1,721</td>
<td width="10%" align="right">0</td>
<td width="10%" align="right">0</td>
<td width="10%" align="right">0</td>
<td width="10%" align="right">1,721</td>
</tr>
</table>
...etc...

any ideas, its most annoying ;)
tia

/n = Mod entered line break to remove scroll

[edited by: BlobFisk at 2:24 pm (utc) on June 21, 2004]
[edit reason] Removed Scroll [/edit]

Leosghost

11:53 am on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I (who dont know much about this CSS stuff ( which is no doubt the solution to this problem )However I ..have had the same problem ) ..I'm sure that it comes from assuming that you can use 95% in the main frame and that all the "spaces" can add up to 100%..if you think about it the other frame ( vertical dividersor separators or whossits ) wether visible or not do have to take up some screenwidth and I think that your page is totalling around 102 or 103% of screen width ....
I had the same thing buuging me for days on a layout and then when I dropped to 92% it magically went "normal" ....I had been told at the time by those in the know ( not here ) that it couldn't possibly be the "vertical dividers" as they have no real width and frames is a "conceptual idea sort of thingy" ...Well they probably were right and no doubt someone here will post a "real" solution and we'll all go ...

"Way to go ..whoever!"..
and be amazed why we diddnt' think of it ..

Mean time ...My way works ...it appears that browsers think like me ( or at least IE does which confirms some peoples ideas here ..hehe... ; )

natty

1:20 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



hi Leosghost
thanks for the reply..
as you prolly know its only IE that doesnt work..
ill try the 92% thing, and cross my fingers i think..

steelegbr

1:50 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



He is right about not being able to use 100% of the page for tables. This only seems (to my experiance) a problem in standards mode (validation hates %'s anyway) and works fine in quirks mode.

Leosghost

2:02 pm on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hee hee ..just came back here and found the page is broke and has a horizontal scroll bar ( not my doing guys honest )..I've told the mods ..so it won't last ...

I actually came back to apologise for my spelling ..YUK!

natty

10:32 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



so am i reduced to writing some js to work out the frame size and resizing the table accordingly..
as you can probably see, the main frame is filled with reporty type tables (some quite large), so having to do that would suck really badly.
92% didnt work.

Leosghost

9:11 am on Jun 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry if I confused you ..92% isn't the answer always ( as anyone knows the answer is 42 ..ask the mice )...

92% worked with mine ...it's sort of play around till you get it or like you said write some javascript...