[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Page margins in NS

Posted on 2000-01-22
23
Medium Priority
?
277 Views
Last Modified: 2010-04-09
My url:
http://ozgoth.tripod.com/

Problem:
In IE the page works fine, moslty because I do most of my designing on an IE5 machine.
In Netscape, which adds a margin to the page, the left-hand navigation frame gets a scroll bar added to the bottom because it is some 2 or so pixels too wide.
I have used marginheight=0 and marginwidth=0 in the body tag in this frame, which helped to some degree, but I still have those 2 pixels or so of padding which I don't want, because of the design of the navigation bar -- the black is supposed to (with the aid of some images) fade into the red. This effect is lost if the user has to scroll across a pixel or two in order to see the slight fade-in.
I don't want to be putting a scrolling=0 into the frameset page, because then in low-res situation you won't be able to access some of the menu bar. The site is currently designed primarily for 800x600. It should work in higher resolutions ok though, but I want it to remain compatible to one degree or another with low res as well.

How can I remove this padding that Netscape is adding to my page?

At present all I have tested in is IE5 and NN4. If you get strange results using other versions/browsers/platforms/etc, please describe.

Thankyou.
0
Comment
Question by:Subhuman
  • 12
  • 4
  • 3
  • +3
23 Comments
 
LVL 15

Expert Comment

by:robbert
ID: 2379025
Why don't you try;

<body marginheight="-2"> ?
0
 
LVL 3

Expert Comment

by:vlad_impala
ID: 2379280
Just a thought..
On your frameset tag have you tried specifying framespacing="0"?
e.g. <frameset rows="120,*" border="0" framespacing="0" frameborder="no">

Vlad.
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2379694
robbert: does this work? I'll have to give it a try. I'd always assumed 0 was at least *supposed* to mean 0, so I never considered negative numbers.

vlad_impala: no, I'll have to do that.

Thankyou both, I'll try both of these shortly. (After I've sifted through my inbox of other postings - hehe).
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 1

Author Comment

by:Subhuman
ID: 2379794
nggAaaargh!
Neither of these has made so much as an iota of difference.
I'm working on something of my own, I'll get back.
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2379853
Ok, I'm back.
Like I said, neither of these suggestions has done much. marginheight=-2 and marginwidth=-2 did exectly the same as what a value of 0 did.
I put framespacing=0 into my framesets and nothing happened. Just to be sure I tried putting it into the <frame> tags but -- nothing.
Then I tried modifying the tables in the page.
The frame is 196 px wide.
I managed to get rid of the horizontal scrollbar by reducing table to 191 px wide, but I'd have to resize the background image to fit otherwise I'd lose the fade-in effect which is what this whole thread is about. Also, it wouldn't work in IE then, either.
Another problem is that when I *had* managed to get rid of the horizontal scrollbar, NS was still leaving space for it at the bottom, so there was a strip of black exactly 1 scrollbar wide at the bottom, despite the table height=100%.
So I have given up on resizing the table --either way one browser wins out and the IE solution is less code and more people use it anyway.

If there are any Netscape experts out there, can you *please* tell me if it's possible to get rid of this damn padding around the frame, and if so, how!

Thankyou robbert and vlad for your help so far :P
0
 
LVL 15

Expert Comment

by:robbert
ID: 2379975
As always, when there is no solution at first glance; put your pages online (and if there are server-side scripts, post them here), so that we can see what's reality.
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2380018
http://ozgoth.tripod.com/ is the url of the frameset (file name index.htm)
nav.htm in top level directory is the page I'm having trouble with -- it's in the left side frame of the frameset.
0
 
LVL 15

Expert Comment

by:robbert
ID: 2380052
<td colspan=2 width=196 height=20 valign="middle"><img src="images/navtop.jpg" width=196 height=20></td>

Isn't your problem valign=top?
0
 
LVL 4

Expert Comment

by:garrethg
ID: 2381072
<BEINGHELPFUL>
Netscape, the buffer king, has a problem with:
<IMG height=20 src="nav_files/navtop.jpg" width=196>
The scroll bar wouldn't go away until I set the width to 193. That's all I changed. Sadly that's a bit like sawing the ends of legs on a wobbly table, but it looked OK. Maybe if you cut the descender part of the image down a bit?.
</BEINGHELPFUL>

<NOTBEINGHELPFUL>
Austrialian Goth. I just can't picture it :)
"G'day Bruce, bonza' day. Comming down the auld barbie to look pale and interesting?"
"Ah right on Bruce, I'll bring me new 'Sisters of Mercy' album"
"Fair dinkum Bruce"
</NOTBEINGHELPFUL>
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2383142
<chuckles morbidly>

Robbert: what do you mean?
0
 

Expert Comment

by:hatecapletters
ID: 2387016
subhuman >>> just a thought, have you tried with <table hspace="0" vspace="0"..... etc > ?

it should give you at lesst those 2 pixels you are looking for in netscape, but I haven't had time to try it out myself

take care

hatecapletters
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2387954
What exactly are hspace and vspace supposed to do? I've never heard of them. I'll give them a try. :->
0
 

Expert Comment

by:hatecapletters
ID: 2388034
hspace and vspace sets the amount of free space around the object. they are especially useful when you want two tables next to each other without any space between them.
0
 

Expert Comment

by:hatecapletters
ID: 2388040
hspace and vspace sets the amount of free space around the object. they are especially useful when you want two tables next to each other without any space between them.
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2388059
Ok, thanks for that. If netscape will support it, it's exactly what I'm looking for.
I'll probably test it tomorrow or Friday.
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2388061
Of course, it's nearly 8:30 here in Australia... :->
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2388113
Ok, I tested it now. hspace and vspace haven't done a damn thing, at least not in NS.
Damn page margins...
0
 
LVL 15

Accepted Solution

by:
Eric AKA Netminder earned 200 total points
ID: 2397974
Hate to be the bearer of bad news... but since no one's willing to say it definitely...

The two browsers (IE and NS) handle frames (and tables) differently. NS is, as garrethg noted, a buffer hog. We had a b-tch of a time getting the frames right on our website (http://www.questsys.com, and click on Resources/TechStream to see why). The only solution was to either cut the legs of one chair, or add longer legs to the other one. We essentially met in the middle and did both.

Just for your future reference, IE is more precise in its handling of frame sizes. When you say 131 pixels, it sets the frame at 131. With NS, it could be as much as 135-137...
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2446321
Thanks for coming out and saying it.
I'll just have to put up with netscape.
0
 
LVL 15

Expert Comment

by:Eric AKA Netminder
ID: 2464121
Doncha just hate it when that happens? *grin*
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2476257
Yeh... lol.
0
 
LVL 15

Expert Comment

by:robbert
ID: 2480274
NN was the first GOOD browser.

M$ IE will be the last, possibly.

Be aware.

"LOL" :-(
0
 
LVL 1

Author Comment

by:Subhuman
ID: 2494842
*agrees*
Was originaly a netscaper until nn4, now i'm ie.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

591 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