Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi there,
I'm designing a web site that will be used by all browsers. I have a left frame and a right frame. The left frame is set to use 192 pixels and the right frame is set to use however many pixels are left after the 192. This is how the frames are defined:
Then on the left frame I have the tag set up like this:
Notice the "LEFTMARGIN" and "MARGINWIDTH" tags. With the way that I have it set up it pushes the frame content over 6 pixels in both IE and Netscape. Now, here comes the problem. I then have a table on that page set up like this:
Notice the width is 180. Remember there are 6 pixel margins. 180 + 6 + 6 = 192. So with combination of the 6 pixel margins and the 180 pixel table, you get 192 pixels, which is the size of the left frame. So it should work, right? Wrong. It /almost/ works, but in Netcape it has a horizontal scrollbar and it only displays 191 pixels. You have to scroll to the right to get the last pixel. I don't want to disable scrolling, because 640 x 480 users are going to need to be able to scroll down. What am I doing wrong? Thanks very much.
-Adam

Okay, obviously this message board didn't like me putting HTML in, so instead of using '' signs I will use '[' and ']' signs.
This is how the frames are defined:
[FRAMESET COLS="192,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0" NORESIZE="YES"]
Then on the left frame I have the BODY tag set up like this:
[BODY BGCOLOR="#C01919" TEXT="#FFFFFF" LEFTMARGIN="6" TOPMARGIN="0" MARGINWIDTH="6" MARGINHEIGHT="0"]
I then have a table on that page set up like this:
[TABLE WIDTH="180" CELLPADDING="0" CELLSPACING="0" BORDER="0"]

What if you try to make the left frame a bit bigger, maybe 196 pixels?
Working with Netscape, IE and all kinds of resolutions can be a pain in the ass.

Hi Ri,
Thanks for the response. I recently learned that older versions of Netscape (like 4.75 and such) require the frame size to be multiples of 8 in order to display correctly, so if I was to increase the size I'd have to bump it up to 200. And I have to keep it at 192 because of the way my site is set up. It's a very complicated site. I'm insane for thinking this but I'm /actually/ considering rewriting all the code in a non-frame based environment :S Thanks again for your response!
-Adam

Before you rewrite everything, consider that something like only 5% of all browser users use Netscape, that includes NS 6. The number of NS 4 users decreases each day as people switch to NS 6 (or IE for the more intelligent ones - ouch, such a non-PC comment)
Do you know that you have enough Netscape traffic to justify the extra work.

Well, Frames are quite oldschool I tell you.
Almost no one uses them anymore and to be honest with you they are kind of annoying. Try to implement the same code, only in a none frame way, I'm pretty sure a few modifications will do the job.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |