PC Review


Reply
Thread Tools Rate Thread

DOCTYPE centers everything

 
 
W3C newbie
Guest
Posts: n/a
 
      29th Jun 2004
This is more of an html question than Front Page. My pages
have had <html > without a doc type all along.
I want to make the site W3C compliant and so put in this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
><html lang="EN-US" >


Everything that is not specifically justified now comes up
centered rather than left justified. This includes the
content in a javascript pull down menu.

What the heck...
 
Reply With Quote
 
 
 
 
chris leeds
Guest
Posts: n/a
 
      29th Jun 2004
maybe if you try an "older" spec. for the html?

I feel your pain though. I've been playing around with a .css layout most
of the day and oddly enough the best rendering is when I leave the doctype
OFF.

I think I'll have to figure it out the "right way" though. ;-)

--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


"W3C newbie" <(E-Mail Removed)> wrote in message
news:226c401c45d64$34fb6560$(E-Mail Removed)...
> This is more of an html question than Front Page. My pages
> have had <html > without a doc type all along.
> I want to make the site W3C compliant and so put in this:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> ><html lang="EN-US" >

>
> Everything that is not specifically justified now comes up
> centered rather than left justified. This includes the
> content in a javascript pull down menu.
>
> What the heck...



 
Reply With Quote
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      29th Jun 2004
Hi W3C newbie:
If the content that is being centered is content within table cells, it's
because beginning with IE5, if you do not specify an alignment for the cell
content, it will inherit its alignment from the alignment you specified for
the table that contains those cells. So, if the table is centered and you
want the cell content aligned left, you have to specify align="left" in your
<TD> tag.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/
Connect to the Newsgroups with Outlook Express
http://www.tushar-mehta.com/misc_tut..._ng/index.html


W3C newbie <(E-Mail Removed)> wrote:
> This is more of an html question than Front Page. My pages
> have had <html > without a doc type all along.
> I want to make the site W3C compliant and so put in this:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
>> <html lang="EN-US" >

>
> Everything that is not specifically justified now comes up
> centered rather than left justified. This includes the
> content in a javascript pull down menu.
>
> What the heck...


 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      29th Jun 2004
Chris,
I think the "right" way - if there is such a thing :-) is to design with a
full doctype and test in the best CSS browser available, which to my mind is
Firefox at the moment. If you can get your site right with a doctype in this
browser you can be fairly sure your code is technically correct. Then make
whatever adjustments you need to match your layout in IE6, then cater for
IE5, then decide what you want to do about crap browsers, ie Netscape4. Now
that Netscape 4 is pretty much out of the picture IE5 seems to have taken
it's role as "the worst browser we have to support."

--
Cheers,
Jon
Microsoft MVP - FP

"chris leeds" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> maybe if you try an "older" spec. for the html?
>
> I feel your pain though. I've been playing around with a .css layout most
> of the day and oddly enough the best rendering is when I leave the doctype
> OFF.
>
> I think I'll have to figure it out the "right way" though. ;-)
>
> --
> The email address on this posting is a "black hole". I got tired of all

the
> spam.
> Please feel free to contact me here:
> http://nedp.net/contact/
> --
>
>
> "W3C newbie" <(E-Mail Removed)> wrote in message
> news:226c401c45d64$34fb6560$(E-Mail Removed)...
> > This is more of an html question than Front Page. My pages
> > have had <html > without a doc type all along.
> > I want to make the site W3C compliant and so put in this:
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> > ><html lang="EN-US" >

> >
> > Everything that is not specifically justified now comes up
> > centered rather than left justified. This includes the
> > content in a javascript pull down menu.
> >
> > What the heck...

>
>



 
Reply With Quote
 
chris leeds
Guest
Posts: n/a
 
      29th Jun 2004
thanks for the tips.
I'm getting pretty much the same thing in firefox/mozilla as I am in ie6.

I guess I'll have to go look for a doctype to go with it. ;-) then probably
re-adjust.....

--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


"Jon Spivey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Chris,
> I think the "right" way - if there is such a thing :-) is to design with a
> full doctype and test in the best CSS browser available, which to my mind

is
> Firefox at the moment. If you can get your site right with a doctype in

this
> browser you can be fairly sure your code is technically correct. Then make
> whatever adjustments you need to match your layout in IE6, then cater for
> IE5, then decide what you want to do about crap browsers, ie Netscape4.

Now
> that Netscape 4 is pretty much out of the picture IE5 seems to have taken
> it's role as "the worst browser we have to support."
>
> --
> Cheers,
> Jon
> Microsoft MVP - FP
>
> "chris leeds" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > maybe if you try an "older" spec. for the html?
> >
> > I feel your pain though. I've been playing around with a .css layout

most
> > of the day and oddly enough the best rendering is when I leave the

doctype
> > OFF.
> >
> > I think I'll have to figure it out the "right way" though. ;-)
> >
> > --
> > The email address on this posting is a "black hole". I got tired of all

> the
> > spam.
> > Please feel free to contact me here:
> > http://nedp.net/contact/
> > --
> >
> >
> > "W3C newbie" <(E-Mail Removed)> wrote in message
> > news:226c401c45d64$34fb6560$(E-Mail Removed)...
> > > This is more of an html question than Front Page. My pages
> > > have had <html > without a doc type all along.
> > > I want to make the site W3C compliant and so put in this:
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> > > ><html lang="EN-US" >
> > >
> > > Everything that is not specifically justified now comes up
> > > centered rather than left justified. This includes the
> > > content in a javascript pull down menu.
> > >
> > > What the heck...

> >
> >

>
>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      29th Jun 2004
Making your web site W3C-compliant is an exercise in futility. Making your
web site successful is a much better approach. Rather than trying to satisfy
some software that checks for W3C-correctness, try satisfying your target
audience.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"W3C newbie" <(E-Mail Removed)> wrote in message
news:226c401c45d64$34fb6560$(E-Mail Removed)...
> This is more of an html question than Front Page. My pages
> have had <html > without a doc type all along.
> I want to make the site W3C compliant and so put in this:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> ><html lang="EN-US" >

>
> Everything that is not specifically justified now comes up
> centered rather than left justified. This includes the
> content in a javascript pull down menu.
>
> What the heck...



 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      29th Jun 2004
Kevin said "Making your web site W3C-compliant is an exercise in futility."

I'm glad I'm not the only one that feels that way.
Perfect example, colored scrollbars.
Only work in IE and other browsers ignore them, but a site that uses them won't validate.
Have a hyperlink on a page that contains & site won't validate.
( and that's just the beginning )

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Making your
> web site successful is a much better approach. Rather than trying to satisfy
> some software that checks for W3C-correctness, try satisfying your target
> audience.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "W3C newbie" <(E-Mail Removed)> wrote in message
> news:226c401c45d64$34fb6560$(E-Mail Removed)...
> > This is more of an html question than Front Page. My pages
> > have had <html > without a doc type all along.
> > I want to make the site W3C compliant and so put in this:
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> > ><html lang="EN-US" >

> >
> > Everything that is not specifically justified now comes up
> > centered rather than left justified. This includes the
> > content in a javascript pull down menu.
> >
> > What the heck...

>
>



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      29th Jun 2004
That misses the point of validation Kevin. The point of W3C compliance, ie
"standards" is to use HTML for it's intended purpose - structuring your page
and then using CSS to make it look it pretty. As opposed to things like
tables nested 5 deep transaprent gif and all that nasty stuff we all grew up
with. . From the designers point of view building pages "properly" means
you can do twice the work in half the time - a very worthwhile goal to my
mind :-) I don't understand why anyone sticks to the old way of doing
things.

If you mean by validation getting zero errors so you can put the Valid HTML
logo on your page then I'd agree that's a waste of time. Who's going to be
impressed by that logo anyway? More importantly is having it going to make
more sales on your site - I doubt it :-) I use the validator in the same way
as a spell checker - you write an email spell check it the spell checker
throws up a couple of misspelled words - you say thank you very much I didnt
notice them and correct them. Then it throws up a word that you meant to
spell worng, or that you knew wasn't in the dictionary - you ignore the
error because you know you're right. Steve's point about colored scrollbars
is a good one - so what if they don't validate you want to use them, you
know they work and won't cause any ill-effects in other browsers so you use
them. The point of validation is to use it to help you - not to tell you
what to do :-)

--
Cheers,
Jon
Microsoft MVP - FP

"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Making your web site W3C-compliant is an exercise in futility. Making your
> web site successful is a much better approach. Rather than trying to

satisfy
> some software that checks for W3C-correctness, try satisfying your target
> audience.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "W3C newbie" <(E-Mail Removed)> wrote in message
> news:226c401c45d64$34fb6560$(E-Mail Removed)...
> > This is more of an html question than Front Page. My pages
> > have had <html > without a doc type all along.
> > I want to make the site W3C compliant and so put in this:
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> > ><html lang="EN-US" >

> >
> > Everything that is not specifically justified now comes up
> > centered rather than left justified. This includes the
> > content in a javascript pull down menu.
> >
> > What the heck...

>
>



 
Reply With Quote
 
David Baxter
Guest
Posts: n/a
 
      29th Jun 2004
I would add that among the myths of W3C validation are: it will make
your pages load faster, and it will improve your position in search
engine rankings. Neither is true.


"Steve Easton" <(E-Mail Removed)> wrote in message
news:eH2%(E-Mail Removed)...
> Kevin said "Making your web site W3C-compliant is an exercise in

futility."
>
> I'm glad I'm not the only one that feels that way.
> Perfect example, colored scrollbars.
> Only work in IE and other browsers ignore them, but a site that uses

them won't validate.
> Have a hyperlink on a page that contains & site won't validate.
> ( and that's just the beginning )
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Kevin Spencer" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Making your
> > web site successful is a much better approach. Rather than trying to

satisfy
> > some software that checks for W3C-correctness, try satisfying your

target
> > audience.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "W3C newbie" <(E-Mail Removed)> wrote in message
> > news:226c401c45d64$34fb6560$(E-Mail Removed)...
> > > This is more of an html question than Front Page. My pages
> > > have had <html > without a doc type all along.
> > > I want to make the site W3C compliant and so put in this:
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > > Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
> > > ><html lang="EN-US" >
> > >
> > > Everything that is not specifically justified now comes up
> > > centered rather than left justified. This includes the
> > > content in a javascript pull down menu.
> > >
> > > What the heck...

> >
> >

>
>



 
Reply With Quote
 
W3C Newbie
Guest
Posts: n/a
 
      29th Jun 2004
Thanks for this, the tables are in fact centered and the
TD tags don't specify align left.

It's a 100+ page site, so DOCTYPE ain't a-gonna happen
except on new pages.

I agree that success is more important than strict W3C
compliance. I don't care about the logo. Yet, W3C is the
standard for this stuff...do you want your web site to
work for all of your customers, or do you only care about
those with IE and broadband?
Same thing with CSS and Bobby, strict compliance is a
waste, but knowing the fundamentals is just part of the
job.


>-----Original Message-----
>Hi W3C newbie:
>If the content that is being centered is content within

table cells, it's
>because beginning with IE5, if you do not specify an

alignment for the cell
>content, it will inherit its alignment from the alignment

you specified for
>the table that contains those cells. So, if the table is

centered and you
>want the cell content aligned left, you have to specify

align="left" in your
><TD> tag.
>
>--
>~ Kathleen Anderson
>Microsoft MVP - FrontPage
>Spider Web Woman Designs
>http://www.spiderwebwoman.com/resources/
>Connect to the Newsgroups with Outlook Express
>http://www.tushar-

mehta.com/misc_tutorials/oe_ng/index.html
>
>
>W3C newbie <(E-Mail Removed)> wrote:
>> This is more of an html question than Front Page. My

pages
>> have had <html > without a doc type all along.
>> I want to make the site W3C compliant and so put in

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

>>
>> Everything that is not specifically justified now comes

up
>> centered rather than left justified. This includes the
>> content in a javascript pull down menu.
>>
>> What the heck...

>
>.
>

 
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
Centers nicely in IE8 but not in FireFox AAaron123 Microsoft ASP .NET 6 17th Aug 2009 03:44 PM
Sorting data from different centers AGOKP4 Microsoft Access Queries 10 10th Jul 2009 04:08 PM
media centers, hype or the new wave? nightrider.36 Computer Hardware 4 2nd Nov 2006 05:45 PM
doctype centers things Catherine Jo Morgan Microsoft Frontpage 3 13th Apr 2004 09:00 PM
.net cf training centers Amit Chopra Microsoft Dot NET Compact Framework 5 3rd Oct 2003 01:02 PM


Features
 

Advertising
 

Newsgroups
 


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