Solved

Frames in Netscape

Posted on 2000-03-31
5
197 Views
Last Modified: 2010-04-09
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
Comment
Question by:rhinosaur
  • 4
5 Comments
 
LVL 8

Expert Comment

by:xabi
ID: 2672298
Hi there:

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

xabi
0
 
LVL 8

Expert Comment

by:xabi
ID: 2672348
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
 
LVL 8

Expert Comment

by:xabi
ID: 2672437
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
 
LVL 8

Accepted Solution

by:
xabi earned 300 total points
ID: 2672443
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
 
LVL 1

Author Comment

by:rhinosaur
ID: 2672783
Although I guess I can write a JavaScript function to resize the frames according to which browser is being used.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding a countdown to HTA 12 99
Mobile apps - web/native or hybrid? 1 75
need help with share buttons 11 72
Table doesn't show the lines! 3 25
This article discusses how to create an extensible mechanism for linked drop downs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question