?
Solved

Frames in Netscape

Posted on 2000-03-31
5
Medium Priority
?
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 900 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
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 position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

771 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