• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Frames in Netscape

Can anybody explain why NS is not displaying frames quite right. For example I have a top frame 70 pixels in height, with a background image of 70 pixels that fits nicely in IE. However, in NS the frame is actually only about 68 pixels high and the image doesn't quite fit.

Here's the code:

<frameset rows="70,*" border="0" framespacing="0" frameborder="no">
    <noframes>
    <body>
    <p>This page uses frames, but your browser doesn't support them.</p>
    </body>
    </noframes>
    <frame name="header" scrolling="no" noresize target="contents" src="Header" marginheight=0 marginwidth=0>
    <frameset cols="200,*" border="0" framespacing="0" frameborder="no">
        <frame name="categories" src="Categories" scrolling="no" noresize>
        <frame name="main" src="Home" scrolling="auto">
    </frameset>
</frameset>
0
rhinosaur
Asked:
rhinosaur
  • 4
1 Solution
 
xabiCommented:
Hi there:

This due a NS bug and you can'd do anything but redesing your site to avoid this anoying bug.

xabi
0
 
xabiCommented:
I was looking for the article that talks about this problem, but i can't find it. Anyway it explains that the problem is cause netscape internaly works with percent dimensions, so when you gives pixel sizes it converts this into percent sizes so the problem comes when rounding. I will keep trying to find this article.

xabi
0
 
xabiCommented:
Here goes one article I found around:

..
..
8.10. Why aren't my frames the exact size I specified?
Netscape Navigator seems to round pixel-based frame dimensions to the nearest whole percentage, and to use those percentage-based dimensions when laying out the frames. Thus, frames with pixel-based dimensions will be rendered with a slightly different size than that specified in the frameset document. There is no way to prevent this behavior.

To accomodate this, you should design your site to accomodate variations in the browser's presentation. This is a good idea in general, but especially so in this situation.
..
..

xabi

ps: Taken from :
http://www.ex.ac.uk/its/webmatters/htmlreference/faq.html#frame-size
0
 
xabiCommented:
As I said you the only way to solve this problem is to redesing your images and frame layout to fit with this crappy Netscape bug

xabi
0
 
rhinosaurAuthor Commented:
Although I guess I can write a JavaScript function to resize the frames according to which browser is being used.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now