Computing.Net > Forums > Programming > Horrible HTML Frames Problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Horrible HTML Frames Problem

Reply to Message Icon

Name: Adam
Date: July 17, 2002 at 13:47:38 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Adam
Date: July 17, 2002 at 13:50:35 Pacific
Reply:

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"]


0

Response Number 2
Name: Ri
Date: July 17, 2002 at 14:14:15 Pacific
Reply:

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.


0

Response Number 3
Name: Adam
Date: July 17, 2002 at 14:19:10 Pacific
Reply:

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


0

Response Number 4
Name: Don Arnett
Date: July 17, 2002 at 15:53:34 Pacific
Reply:

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.


0

Response Number 5
Name: Ri
Date: July 18, 2002 at 06:15:55 Pacific
Reply:

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.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Horrible HTML Frames Problem

HTML frames problem www.computing.net/answers/programming/html-frames-problem/5695.html

HTML Frames.... www.computing.net/answers/programming/html-frames/14239.html

HTML FTP Problems www.computing.net/answers/programming/html-ftp-problems/6409.html