[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Frames in Netscape

Posted on 2000-03-31
5
Medium Priority
?
201 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

Independent Software Vendors: 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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

650 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