Solved

Frames in Netscape

Posted on 2000-03-31
5
190 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now