473,471 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Netscape and xhtml

My question is why netscape doesn't seem to support a style definition in a
table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">
<tr>
<td>&nbsp;</td>
</tr>
</table>

is NOT working for netscape

<table align="center">
<tr>
<td>&nbsp;</td>
</tr>
</table>

IS working for NN7.1 ?!?!

Why does this happen? W3C says about the "align" tag: "Deprecated. Use
styles instead."

Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1 not
YET made for XHTML support?
Jul 20 '05 #1
9 1625
Sector024 Media wrote:
My question is why netscape doesn't seem to support a style definition in
a table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">
What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.
Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
not YET made for XHTML support?


Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
really HTML)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #2

"David Dorward" <do*****@yahoo.com> schreef in bericht
news:c7*******************@news.demon.co.uk...
Sector024 Media wrote:
My question is why netscape doesn't seem to support a style definition in a table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">


What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.
Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
not YET made for XHTML support?


Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
really HTML)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>


The thing is, that i needed to align a table, which works fine in IE (using
the style="" tag) but it doesn't work in NN..
I needed to put the normale align="center" in the table to center it.. other
options didn't work (even when the table was placed inside a <div
style="text-align:center;"> tag.

My question is, why (if NN has this behaviour) the normale align="center"
tag is deprecated by W3C?
On their website they say: 'Deprecated. Use styles instead.'
Jul 20 '05 #3
On Sat, 08 May 2004 10:58:59 +0200, Sector024 Media wrote:

"David Dorward" <do*****@yahoo.com> schreef in bericht
news:c7*******************@news.demon.co.uk...
Sector024 Media wrote:
> My question is why netscape doesn't seem to support a style definition in > a table?
>
> I have my pages as valid xhtml1.0, and still netscape is not folowing
> orders..
>
> <table style="text-align:center;">


What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.
> Is it because NN7.1 isn't made for a webstandard like XHTML or is NN7.1
> not YET made for XHTML support?


Netscape supports XHTML, Internet Explorer doesn't (unless you claim its
really HTML)


The thing is, that i needed to align a table, which works fine in IE (using
the style="" tag) but it doesn't work in NN..
I needed to put the normale align="center" in the table to center it.. other
options didn't work (even when the table was placed inside a <div
style="text-align:center;"> tag.

My question is, why (if NN has this behaviour) the normale align="center"
tag is deprecated by W3C?
On their website they say: 'Deprecated. Use styles instead.'


Yes. You have misinterpreted *which* style to use. "text-align: center"
centers the contents of an element, not the element itself. To center a
block element, set both horizontal margins to the same size; if you don't
have a size in mind, 'auto' will center using up as much space as needed
on either side.

Internet Explorer gets this wrong (except IE 6 in Standards mode; ask
others, as I don't believe in browser quirks). In general, if something
displays differently in Mozilla (on which Netscape 7.1 is based) and IE,
or in Opera and IE, or in pretty much any modern browser and IE, it's safe
to assume IE's rendering is incorrect.

There are exceptions, but there aren't that many.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #4
Sector024 Media wrote:
> <table style="text-align:center;">
What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.

The thing is, that i needed to align a table, which works fine in IE
(using the style="" tag) but it doesn't work in NN..
It shouldn't work anywhere, see the document I referenced.
My question is, why (if NN has this behaviour) the normale align="center"
tag is deprecated by W3C?
On their website they say: 'Deprecated. Use styles instead.'


The deprecation of HTML elements and attributes (in this case) is because
HTML is the wrong tool for the job and it should be done using CSS, not
because of any particular level of browsers support.

That said, it is your CSS and Internet Explorer's handling of it that is at
fault here, not Netscape. See the document I referenced.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #5

"David Dorward" <do*****@yahoo.com> schreef in bericht
news:c7*******************@news.demon.co.uk...
Sector024 Media wrote:
> <table style="text-align:center;">

What do you expect to happen?
http://dorward.me.uk/www/centre/ might be useful.
The thing is, that i needed to align a table, which works fine in IE
(using the style="" tag) but it doesn't work in NN..
It shouldn't work anywhere, see the document I referenced.
My question is, why (if NN has this behaviour) the normale

align="center" tag is deprecated by W3C?
On their website they say: 'Deprecated. Use styles instead.'


The deprecation of HTML elements and attributes (in this case) is because
HTML is the wrong tool for the job and it should be done using CSS, not
because of any particular level of browsers support.

That said, it is your CSS and Internet Explorer's handling of it that is

at fault here, not Netscape. See the document I referenced.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>


Ok, it seems more clear now..
I have looked @ the doc David referred to.

Thanks for your replies, i will sudy some more :)
(starting @ david's website)
greetings
Jul 20 '05 #6
Sector024 Media <in**@sector024.nl> wrote:
My question is why netscape doesn't seem to support a style definition in a
table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">
<tr>
<td>&nbsp;</td>
</tr>
</table>


Did you try:

<p "text-align:center;">
<table>
...
</table>
</p>

?

--
_Deirdre http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
-- Wen Spencer on plotting a novel
Jul 20 '05 #7
Deirdre Saoirse Moen wrote:
Sector024 Media <in**@sector024.nl> wrote:
My question is why netscape doesn't seem to support a style definition in
a table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">
<tr>
<td>&nbsp;</td>
</tr>
</table>


Did you try:

<p "text-align:center;">
<table>
...
</table>
</p>


Even if you assume you intended the first line to be <p style="text-align:
center;"> this still isn't valid HTML. You can't put <table> inside <p>.

--
Shawn K. Quinn
Jul 20 '05 #8
Shawn K. Quinn <sk*****@xevious.kicks-ass.net> wrote:
Even if you assume you intended the first line to be <p style="text-align:
center;"> this still isn't valid HTML. You can't put <table> inside <p>.


Ah, I was trying to remember if that was valid, but a quick look didn't
offer the answer to that. I'm away from my usual library, alas.

--
_Deirdre http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
-- Wen Spencer on plotting a novel
Jul 20 '05 #9
> Sector024 Media <in**@sector024.nl> wrote:
My question is why netscape doesn't seem to support a style definition in a table?

I have my pages as valid xhtml1.0, and still netscape is not folowing
orders..

<table style="text-align:center;">
<tr>
<td>&nbsp;</td>
</tr>
</table>


Try <table style="margin-left:auto; margin-right:auto;">

Netscape 7 is doing the right thing. IE is not.


Jul 20 '05 #10

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

Similar topics

2
by: Adam Siler | last post by:
i want to display a series of inline, fixed-width DIVs that will wrap into columns - a table, basically. i can do it under Internet Explorer, but the same code under Netscape or Opera does not...
7
by: sookean | last post by:
Hi, I have a jsp with some list box. And when user selects an option in the list box, I would then generate a url to direct the user to the correct page. The url is of the form:...
12
by: Joseph Misko | last post by:
I am on WinXP. The following page works perfectly in IE6. For Netscape 7.0, I have to move off of the image and then back on to get the fade to take effect, and with Mozilla (latest version) a...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
2
by: Mark Stafford | last post by:
I want to use a pop-up dialog for my intranet, but I'm missing something that keeps me from getting along with NS's browsers right now. I get an error to the effect of "opener.formName has no...
1
by: Tim Jowers | last post by:
I just installed the LoveSan security patch from MSFT and turned on Auto-Update. Now applets do not load. I tried getting Netscape 7.1 but it directs me to the Sun page to install JRE. I do this...
1
by: vivek | last post by:
I'm using a normal DHTML menu control (known as skmmenu control) and It works fine with IE. But I have Issues in displaying the submenu in Netscape 7+. It doesn't seem to be taking the...
2
by: Victor | last post by:
Hi I have a very strange problem for my page. I have writen a js to make sure my table's height is 100% for the browser's viewport. my code is just the following. This works fine for firefox and...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.