473,602 Members | 2,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference in IE and Netscape

Ben
I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK in IE,
but not in Netscape. I used a combination of padding-top and height
attributes to get a total height on four cells. Netscape seems to not
respect the padding-top, and only goes by the height, resulting in the cells
being too short.

What options do I have in CSS? I would like to be able to specify the
height by using a definite attribute (I thought height was the answer, but
my text then goes to the top of the cell, and I want it centered).

Please Help!!! You can go to the page to see what I'm talking about.

Thanks,
Ben
Jul 20 '05 #1
16 2398
Ben wrote:
I have a page (www.eastex.net/ben/NewETN/index3.asp)
Wow. That's an enormous amount of js. What does it do? Is it necessary?
you should put it in a separte file, so that non-js browsers won't have
to download it.
that displays OK in IE
A happy accident since, it appears, you didn't bother validating your code.

http://validator.w3.org/check?uri=ht...N%2Findex3.asp
but not in Netscape.
Which version? 4.x is a completely different browser than 6.x +.
I used a combination of padding-top and height
attributes to get a total height on four cells.


Tables for layout? That's too bad.

http://www.allmyfaqs.com/faq.pl?Tableless_layouts

(tries to hide from the troll who'll likely be along shortly)

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
Ben wrote:
I have a page (www.eastex.net/ben/NewETN/index3.asp)
Wow. That's an enormous amount of js. What does it do? Is it necessary?
you should put it in a separte file, so that non-js browsers won't have
to download it.
that displays OK in IE
A happy accident since, it appears, you didn't bother validating your code.

http://validator.w3.org/check?uri=ht...N%2Findex3.asp
but not in Netscape.
Which version? 4.x is a completely different browser than 6.x +.
I used a combination of padding-top and height
attributes to get a total height on four cells.


Tables for layout? That's too bad.

http://www.allmyfaqs.com/faq.pl?Tableless_layouts

(tries to hide from the troll who'll likely be along shortly)

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
Ben wrote:
I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK
in IE, but not in Netscape. I used a combination of padding-top and
height attributes to get a total height on four cells. Netscape
seems to not respect the padding-top, and only goes by the height,
resulting in the cells being too short.
It isn't clear what you think the problem is. I've just viewed that page in a
number of browsers, and passed screen-shots to Photoshop, and the heights are
not very different. (IE 6, Netscape 7.1, and Firefox 0.8). The heights ranged
from 510 to 519 pixels.

I've just build a table in a test page, and Netscape 7.1 certainly respects
padding all round. (If you mean NN4, I can't comment. I ignore its problems).

Different browsers have different default margins on such things as paragraphs
& headers. It can be useful to set these explicitly.
What options do I have in CSS? I would like to be able to specify the
height by using a definite attribute (I thought height was the
answer, but my text then goes to the top of the cell, and I want it
centered).

[snip]

In general, you can't control tables at the pixel-level via controls on the
tables & cells themselves. At some point, the content will override whatever
controls you try to apply. That is one of the benefits of tables, although it
may not appear that way! For example, your layout breaks quite badly when
viewed with a larger text size. It might break if the user's system had
different fonts from the ones you developed with. You appear to be trying to
position text over the bottom cell of the table using absolute positioning. I
think that is what you are posting about. That is a very risky task.

If you really want pixel-level control of the height (and width) of a table,
you probably need to wrap the content of each cell in <div>...</div>, then
control that <div> via CSS. { height: 300px; overflow: auto; }. The table will
react to the size of that <div>. But this is probably unwise. You would be
much safer allowing the height of the table to expand as much as needed, for
example if the user runs with larger text. This means, don't try to position
text over the table using absolute positioning, but put it *into* the cells,
so it will move with them. As you did with the button in the bottom bar.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #4
Ben wrote:
I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK
in IE, but not in Netscape. I used a combination of padding-top and
height attributes to get a total height on four cells. Netscape
seems to not respect the padding-top, and only goes by the height,
resulting in the cells being too short.
It isn't clear what you think the problem is. I've just viewed that page in a
number of browsers, and passed screen-shots to Photoshop, and the heights are
not very different. (IE 6, Netscape 7.1, and Firefox 0.8). The heights ranged
from 510 to 519 pixels.

I've just build a table in a test page, and Netscape 7.1 certainly respects
padding all round. (If you mean NN4, I can't comment. I ignore its problems).

Different browsers have different default margins on such things as paragraphs
& headers. It can be useful to set these explicitly.
What options do I have in CSS? I would like to be able to specify the
height by using a definite attribute (I thought height was the
answer, but my text then goes to the top of the cell, and I want it
centered).

[snip]

In general, you can't control tables at the pixel-level via controls on the
tables & cells themselves. At some point, the content will override whatever
controls you try to apply. That is one of the benefits of tables, although it
may not appear that way! For example, your layout breaks quite badly when
viewed with a larger text size. It might break if the user's system had
different fonts from the ones you developed with. You appear to be trying to
position text over the bottom cell of the table using absolute positioning. I
think that is what you are posting about. That is a very risky task.

If you really want pixel-level control of the height (and width) of a table,
you probably need to wrap the content of each cell in <div>...</div>, then
control that <div> via CSS. { height: 300px; overflow: auto; }. The table will
react to the size of that <div>. But this is probably unwise. You would be
much safer allowing the height of the table to expand as much as needed, for
example if the user runs with larger text. This means, don't try to position
text over the table using absolute positioning, but put it *into* the cells,
so it will move with them. As you did with the button in the bottom bar.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #5
Ben
Ok, I abviously know a lot less about CSS than originally thought. I used
the first chapter of Eric Meyer on CSS (showing how to convert from HTML
layout to CSS layout). I assumed that tables must be used still, but can be
a lot simpler and the only formatting needed was the cellspacing.

I'll check into allmyfaqs.com for more learning.

Thanks for the info! Do you recommend where I start when learning how to
layout completely with CSS?

--
Ben


"Brian" <us*****@juliet remblay.com.inv alid> wrote in message
news:10******** *****@corp.supe rnews.com...
| Ben wrote:
| > I have a page (www.eastex.net/ben/NewETN/index3.asp)
|
| Wow. That's an enormous amount of js. What does it do? Is it necessary?
| you should put it in a separte file, so that non-js browsers won't have
| to download it.
|
| > that displays OK in IE
|
| A happy accident since, it appears, you didn't bother validating your
code.
|
|
http://validator.w3.org/check?uri=ht...N%2Findex3.asp
|
| > but not in Netscape.
|
| Which version? 4.x is a completely different browser than 6.x +.
|
| > I used a combination of padding-top and height
| > attributes to get a total height on four cells.
|
| Tables for layout? That's too bad.
|
| http://www.allmyfaqs.com/faq.pl?Tableless_layouts
|
| (tries to hide from the troll who'll likely be along shortly)
|
| --
| Brian (remove "invalid" from my address to email me)
| http://www.tsmchughs.com/
Jul 20 '05 #6
Ben
Ok, I abviously know a lot less about CSS than originally thought. I used
the first chapter of Eric Meyer on CSS (showing how to convert from HTML
layout to CSS layout). I assumed that tables must be used still, but can be
a lot simpler and the only formatting needed was the cellspacing.

I'll check into allmyfaqs.com for more learning.

Thanks for the info! Do you recommend where I start when learning how to
layout completely with CSS?

--
Ben


"Brian" <us*****@juliet remblay.com.inv alid> wrote in message
news:10******** *****@corp.supe rnews.com...
| Ben wrote:
| > I have a page (www.eastex.net/ben/NewETN/index3.asp)
|
| Wow. That's an enormous amount of js. What does it do? Is it necessary?
| you should put it in a separte file, so that non-js browsers won't have
| to download it.
|
| > that displays OK in IE
|
| A happy accident since, it appears, you didn't bother validating your
code.
|
|
http://validator.w3.org/check?uri=ht...N%2Findex3.asp
|
| > but not in Netscape.
|
| Which version? 4.x is a completely different browser than 6.x +.
|
| > I used a combination of padding-top and height
| > attributes to get a total height on four cells.
|
| Tables for layout? That's too bad.
|
| http://www.allmyfaqs.com/faq.pl?Tableless_layouts
|
| (tries to hide from the troll who'll likely be along shortly)
|
| --
| Brian (remove "invalid" from my address to email me)
| http://www.tsmchughs.com/
Jul 20 '05 #7
Ben
I'm using netscape 7.1 and there is white space below the right panes due to
the padding-top not being calculated in (or so I assumed). I'm looking into
div tags. I know little about them, but hopefully I can learn fast!

Thanks for your help, I'll probably be posting back in the future about
divs!

Humbled,
Ben
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> wrote in message
news:gq******** *******@newsfe3-win.server.ntli .net...
| Ben wrote:
| > I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK
| > in IE, but not in Netscape. I used a combination of padding-top and
| > height attributes to get a total height on four cells. Netscape
| > seems to not respect the padding-top, and only goes by the height,
| > resulting in the cells being too short.
|
| It isn't clear what you think the problem is. I've just viewed that page
in a
| number of browsers, and passed screen-shots to Photoshop, and the heights
are
| not very different. (IE 6, Netscape 7.1, and Firefox 0.8). The heights
ranged
| from 510 to 519 pixels.
|
| I've just build a table in a test page, and Netscape 7.1 certainly
respects
| padding all round. (If you mean NN4, I can't comment. I ignore its
problems).
|
| Different browsers have different default margins on such things as
paragraphs
| & headers. It can be useful to set these explicitly.
|
| > What options do I have in CSS? I would like to be able to specify the
| > height by using a definite attribute (I thought height was the
| > answer, but my text then goes to the top of the cell, and I want it
| > centered).
| [snip]
|
| In general, you can't control tables at the pixel-level via controls on
the
| tables & cells themselves. At some point, the content will override
whatever
| controls you try to apply. That is one of the benefits of tables, although
it
| may not appear that way! For example, your layout breaks quite badly when
| viewed with a larger text size. It might break if the user's system had
| different fonts from the ones you developed with. You appear to be trying
to
| position text over the bottom cell of the table using absolute
positioning. I
| think that is what you are posting about. That is a very risky task.
|
| If you really want pixel-level control of the height (and width) of a
table,
| you probably need to wrap the content of each cell in <div>...</div>, then
| control that <div> via CSS. { height: 300px; overflow: auto; }. The table
will
| react to the size of that <div>. But this is probably unwise. You would be
| much safer allowing the height of the table to expand as much as needed,
for
| example if the user runs with larger text. This means, don't try to
position
| text over the table using absolute positioning, but put it *into* the
cells,
| so it will move with them. As you did with the button in the bottom bar.
|
| --
| Barry Pearson
| http://www.Barry.Pearson.name/photography/
| http://www.BirdsAndAnimals.info/
| http://www.ChildSupportAnalysis.co.uk/
|
|
Jul 20 '05 #8
Ben
I'm using netscape 7.1 and there is white space below the right panes due to
the padding-top not being calculated in (or so I assumed). I'm looking into
div tags. I know little about them, but hopefully I can learn fast!

Thanks for your help, I'll probably be posting back in the future about
divs!

Humbled,
Ben
"Barry Pearson" <ne**@childsupp ortanalysis.co. uk> wrote in message
news:gq******** *******@newsfe3-win.server.ntli .net...
| Ben wrote:
| > I have a page (www.eastex.net/ben/NewETN/index3.asp) that displays OK
| > in IE, but not in Netscape. I used a combination of padding-top and
| > height attributes to get a total height on four cells. Netscape
| > seems to not respect the padding-top, and only goes by the height,
| > resulting in the cells being too short.
|
| It isn't clear what you think the problem is. I've just viewed that page
in a
| number of browsers, and passed screen-shots to Photoshop, and the heights
are
| not very different. (IE 6, Netscape 7.1, and Firefox 0.8). The heights
ranged
| from 510 to 519 pixels.
|
| I've just build a table in a test page, and Netscape 7.1 certainly
respects
| padding all round. (If you mean NN4, I can't comment. I ignore its
problems).
|
| Different browsers have different default margins on such things as
paragraphs
| & headers. It can be useful to set these explicitly.
|
| > What options do I have in CSS? I would like to be able to specify the
| > height by using a definite attribute (I thought height was the
| > answer, but my text then goes to the top of the cell, and I want it
| > centered).
| [snip]
|
| In general, you can't control tables at the pixel-level via controls on
the
| tables & cells themselves. At some point, the content will override
whatever
| controls you try to apply. That is one of the benefits of tables, although
it
| may not appear that way! For example, your layout breaks quite badly when
| viewed with a larger text size. It might break if the user's system had
| different fonts from the ones you developed with. You appear to be trying
to
| position text over the bottom cell of the table using absolute
positioning. I
| think that is what you are posting about. That is a very risky task.
|
| If you really want pixel-level control of the height (and width) of a
table,
| you probably need to wrap the content of each cell in <div>...</div>, then
| control that <div> via CSS. { height: 300px; overflow: auto; }. The table
will
| react to the size of that <div>. But this is probably unwise. You would be
| much safer allowing the height of the table to expand as much as needed,
for
| example if the user runs with larger text. This means, don't try to
position
| text over the table using absolute positioning, but put it *into* the
cells,
| so it will move with them. As you did with the button in the bottom bar.
|
| --
| Barry Pearson
| http://www.Barry.Pearson.name/photography/
| http://www.BirdsAndAnimals.info/
| http://www.ChildSupportAnalysis.co.uk/
|
|
Jul 20 '05 #9
Ben wrote:
Ok, I abviously know a lot less about CSS than originally thought. I
used the first chapter of Eric Meyer on CSS (showing how to convert
from HTML layout to CSS layout). I assumed that tables must be used
still, but can be a lot simpler and the only formatting needed was
the cellspacing.

[snip]

They are neither mandatory nor prohibited. They are simply a technique for you
to use if they suit your purpose at any time.

But, indeed, if you use them, make them simple and control them via CSS.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
5227
by: Edward Diener | last post by:
In the tutorial on functions there are sections on default arguments and keyword arguments, yet I don't see the syntactic difference between them. For default arguments the tutorial shows: def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while for keyword arguments the tutorial shows: def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
9
2546
by: rez | last post by:
I find it rather frustrating that Netscape 4.x is "no longer supported:" http://help.netscape.com/products/client/communicator/reflib.html Same seems true with IE. How am I ever supposed to make my scripts multi-browser, when they don't bother giving me basic documentation?
2
5914
by: Kkiely | last post by:
what is the difference?
50
5899
by: MozillaCensorsMe | last post by:
Hello, While I haven't finished my wonderful tutorial to save the world, I do have a simple question. What's the difference between h1 and the title tag? For me it seems as though both can be used interchangebly. For example, the articles on my site (andkon.com) have the same title as h1. Comments?
4
1259
by: Guru | last post by:
I am using a string which has <tr> tags inside it. I want to do a greedy search on it. For eg.. if that string contains, <nothing><tr>bla</tr><tr>blablabla</tr><tr>hi</tr></nothing> I want to extract the things inside <tr>..</tr> tags. Like, <tr>bla</tr><tr>blablabla</tr><tr>hi</tr>
1
1423
by: JJ_377 | last post by:
What is the reason for the difference between the way Netscape 7.1 (NS) makes a cookie and Internet Explorer 6 (IE) makes one in the following case: The following JavaScript cookie assignment statement (with variables name="CookieName" and strContent-"cookieValue"): document.cookie = name + "=" + strContent + ";" results in the following results in IE and NS:
4
1685
by: JJ_377 | last post by:
Why won't Netscape do the intended in the following? IE is able to render this page as intended. It is is a "self-posting" ASP form with a JavaScript validation function: if the form fails the JavaScript validation function, then the form should not post and an alert should be issued as indicated below. The *first* alert in the Validate function works in NS, but the rest of the code does not and therefore I wonder about the way I am...
5
1442
by: Better but still clumpsy | last post by:
I have the three following scripts. var pat_piece=/(\w{2})-(\w{2,3})/; item=="kpgn9"> var piece=item.split(pat_piece); Netscape is able to split it correctly while IE isn't. What should pat_piece look like if I only want item to be splitted any word like WN-a10 to two?
0
7994
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7924
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8059
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6731
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5873
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2426
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1513
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1257
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.