PC Review


Reply
Thread Tools Rate Thread

DOCTYPE causing unwanted page rendering

 
 
Kulvinder Singh Matharu
Guest
Posts: n/a
 
      18th Apr 2004
Hi,

To align with html standards, I've added the following DOCTYPE to
some of my webpages....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

However, when I view these pages in IE6 (or the Preview in FP2002), I
am getting unexpected and unwanted results.

Specifically, normal text within tables seem to be centre-aligned as
opposed to being left-aligned.

For example :

1. Page with DOCTYPE
<http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>

2. Page without DOCTYPE
<http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>

There are other changes such as text being of different size, etc.

I'm not sure if its something to do with the linked CSS file which is
here...

<http://www.metalvortex.com/main.css>

Can anyone see what I've done wrong? Thanks in advance!

Regards,

--
Kulvinder Singh Matharu
Contact details : http://www.metalvortex.com/form/form.htm
Website : http://www.metalvortex.com/

"It ain't Coca Cola, it's rice" - The Clash
 
Reply With Quote
 
 
 
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      18th Apr 2004
Hi:
You haven't done anything 'wrong'. Using that DOCTYPE requires that you also
specify alignment for the table cells, otherwise they inherit their
alignment from the table.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Kulvinder Singh Matharu <real-address-in-(E-Mail Removed)> wrote:
> Hi,
>
> To align with html standards, I've added the following DOCTYPE to
> some of my webpages....
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
> However, when I view these pages in IE6 (or the Preview in FP2002), I
> am getting unexpected and unwanted results.
>
> Specifically, normal text within tables seem to be centre-aligned as
> opposed to being left-aligned.
>
> For example :
>
> 1. Page with DOCTYPE
> <http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>
>
> 2. Page without DOCTYPE
> <http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>
>
> There are other changes such as text being of different size, etc.
>
> I'm not sure if its something to do with the linked CSS file which is
> here...
>
> <http://www.metalvortex.com/main.css>
>
> Can anyone see what I've done wrong? Thanks in advance!
>
> Regards,


 
Reply With Quote
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      18th Apr 2004
I should add that this became evident with IE6 - I don't think this happened
with previous versions.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Kathleen Anderson [MVP - FP] <(E-Mail Removed)> wrote:
> Hi:
> You haven't done anything 'wrong'. Using that DOCTYPE requires that
> you also specify alignment for the table cells, otherwise they
> inherit their alignment from the table.
>
>
> Kulvinder Singh Matharu <real-address-in-(E-Mail Removed)> wrote:
>> Hi,
>>
>> To align with html standards, I've added the following DOCTYPE to
>> some of my webpages....
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>>
>> However, when I view these pages in IE6 (or the Preview in FP2002), I
>> am getting unexpected and unwanted results.
>>
>> Specifically, normal text within tables seem to be centre-aligned as
>> opposed to being left-aligned.
>>
>> For example :
>>
>> 1. Page with DOCTYPE
>> <http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>
>>
>> 2. Page without DOCTYPE
>> <http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>
>>
>> There are other changes such as text being of different size, etc.
>>
>> I'm not sure if its something to do with the linked CSS file which is
>> here...
>>
>> <http://www.metalvortex.com/main.css>
>>
>> Can anyone see what I've done wrong? Thanks in advance!
>>
>> Regards,


 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      19th Apr 2004
And the type of doctype to apply affects IE CSS support in standards compliant or quirks mode
See http://msdn.microsoft.com/library/de...hancements.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Kathleen Anderson [MVP - FP]" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| I should add that this became evident with IE6 - I don't think this happened
| with previous versions.
|
| --
| ~ Kathleen Anderson
| Microsoft MVP - FrontPage
| Spider Web Woman Designs
| http://www.spiderwebwoman.com/resources/
|
|
| Kathleen Anderson [MVP - FP] <(E-Mail Removed)> wrote:
| > Hi:
| > You haven't done anything 'wrong'. Using that DOCTYPE requires that
| > you also specify alignment for the table cells, otherwise they
| > inherit their alignment from the table.
| >
| >
| > Kulvinder Singh Matharu <real-address-in-(E-Mail Removed)> wrote:
| >> Hi,
| >>
| >> To align with html standards, I've added the following DOCTYPE to
| >> some of my webpages....
| >>
| >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
| >> "http://www.w3.org/TR/html4/loose.dtd">
| >>
| >> However, when I view these pages in IE6 (or the Preview in FP2002), I
| >> am getting unexpected and unwanted results.
| >>
| >> Specifically, normal text within tables seem to be centre-aligned as
| >> opposed to being left-aligned.
| >>
| >> For example :
| >>
| >> 1. Page with DOCTYPE
| >> <http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>
| >>
| >> 2. Page without DOCTYPE
| >> <http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>
| >>
| >> There are other changes such as text being of different size, etc.
| >>
| >> I'm not sure if its something to do with the linked CSS file which is
| >> here...
| >>
| >> <http://www.metalvortex.com/main.css>
| >>
| >> Can anyone see what I've done wrong? Thanks in advance!
| >>
| >> Regards,
|


 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      19th Apr 2004

"Kulvinder Singh Matharu" <real-address-in-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> To align with html standards, I've added the following DOCTYPE to
> some of my webpages....
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
> However, when I view these pages in IE6 (or the Preview in FP2002), I
> am getting unexpected and unwanted results.
>
> Specifically, normal text within tables seem to be centre-aligned as
> opposed to being left-aligned.
>
> For example :
>
> 1. Page with DOCTYPE
> <http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>
>
> 2. Page without DOCTYPE
> <http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>
>
> There are other changes such as text being of different size, etc.
>
> I'm not sure if its something to do with the linked CSS file which is
> here...
>
> <http://www.metalvortex.com/main.css>
>
> Can anyone see what I've done wrong? Thanks in advance!
>
> Regards,
>
> --
> Kulvinder Singh Matharu
> Contact details : http://www.metalvortex.com/form/form.htm
> Website : http://www.metalvortex.com/
>
> "It ain't Coca Cola, it's rice" - The Clash



I'm not sure I see the differences you're talking about - the menus are
centre-aligned in both pages and in any case this is nothing to do with DOCTYPE.

you use the Align=..... inside your tags, or using CSS to format and layout text
and so on on the screen.

I was using IE 6.0.




 
Reply With Quote
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      19th Apr 2004
Andrew:
It's not the menu - it's the text under the picture.

In IE6, with a valid DOCTYPE, if the table is centered and the alignment for
individual cells is not specified, the cells will inherit their alignment
from the table.

Without a DOCTYPE, the cell alignment will default to the Default (which is
left).


--

~ Kathleen Anderson
Microsoft FrontPage MVP
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Andrew Murray <(E-Mail Removed)> wrote:
> "Kulvinder Singh Matharu" <real-address-in-(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
>> Hi,
>>
>> To align with html standards, I've added the following DOCTYPE to
>> some of my webpages....
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>>
>> However, when I view these pages in IE6 (or the Preview in FP2002), I
>> am getting unexpected and unwanted results.
>>
>> Specifically, normal text within tables seem to be centre-aligned as
>> opposed to being left-aligned.
>>
>> For example :
>>
>> 1. Page with DOCTYPE
>> <http://www.metalvortex.com/myphotos/morocco/jardin_menara.htm>
>>
>> 2. Page without DOCTYPE
>> <http://www.metalvortex.com/myphotos/vietnam/halong_bay_1.htm>
>>
>> There are other changes such as text being of different size, etc.
>>
>> I'm not sure if its something to do with the linked CSS file which is
>> here...
>>
>> <http://www.metalvortex.com/main.css>
>>
>> Can anyone see what I've done wrong? Thanks in advance!
>>
>> Regards,
>>
>> --
>> Kulvinder Singh Matharu
>> Contact details : http://www.metalvortex.com/form/form.htm
>> Website : http://www.metalvortex.com/
>>
>> "It ain't Coca Cola, it's rice" - The Clash

>
>
> I'm not sure I see the differences you're talking about - the menus
> are centre-aligned in both pages and in any case this is nothing to
> do with DOCTYPE.
>
> you use the Align=..... inside your tags, or using CSS to format and
> layout text and so on on the screen.
>
> I was using IE 6.0.


 
Reply With Quote
 
Kulvinder Singh Matharu
Guest
Posts: n/a
 
      19th Apr 2004
On Sun, 18 Apr 2004 18:11:02 -0400, "Kathleen Anderson [MVP - FP]"
<(E-Mail Removed)> wrote:

>Hi:
>You haven't done anything 'wrong'. Using that DOCTYPE requires that you also
>specify alignment for the table cells, otherwise they inherit their
>alignment from the table.


Excellent! Thanks for the help. I guess I've got to specify
left-alignment for the text (or use CSS to do that).

Saw your tip on changing the template to automatically add DOCTYPE
when creating new pages in FrontPage. Thanks for that too!

Thanks to all that replied. I need to have a close look to see what
else DOCTYPE will do to my pages!

Regards,

--
Kulvinder Singh Matharu
Contact details : http://www.metalvortex.com/form/form.htm
Website : http://www.metalvortex.com/

"It ain't Coca Cola, it's rice" - The Clash
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does DocType code go on every page? =?Utf-8?B?TWlrZSBD?= Microsoft Frontpage 1 28th Mar 2007 04:25 AM
RE: Does DocType code go on every page? =?Utf-8?B?Q29yZXkgQnJ5YW50?= Microsoft Frontpage 0 28th Mar 2007 02:17 AM
Form Painting property causing strange font rendering =?Utf-8?B?UmVhbEpD?= Microsoft Access Form Coding 1 23rd Mar 2007 04:39 AM
What's causing this weird webpage rendering? =?Utf-8?B?Sm9yZGFuIEJyYWRmb3Jk?= Windows XP Internet Explorer 5 19th Jan 2006 03:06 AM
!DOCTYPE screws up page layout Gerard Seibert Microsoft Frontpage 2 10th Nov 2003 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 PM.