PC Review


Reply
Thread Tools Rate Thread

doctype centers things

 
 
Catherine Jo Morgan
Guest
Posts: n/a
 
      13th Apr 2004
On the test page at http://www.cjmorgan.com/modern-abstract-art.htm if I add
a doctype declaration above the <html> then it looks ok in normal view, but
in preview the H1 and left hand navigation are both centered.

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

Maybe I need a different one? Or maybe there's something else I need to do
to make this work? Without the doctype the page seems ok. TIA


 
Reply With Quote
 
 
 
 
Ronx
Guest
Posts: n/a
 
      13th Apr 2004
I don't know if this is the cause, but there is a table where the cells add
up to 110% of the tables width....
--
Ron
Reply only to group - emails will be deleted unread.
"Catherine Jo Morgan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On the test page at http://www.cjmorgan.com/modern-abstract-art.htm if I

add
> a doctype declaration above the <html> then it looks ok in normal view,

but
> in preview the H1 and left hand navigation are both centered.
>
> The doctype I tried is
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
> Maybe I need a different one? Or maybe there's something else I need to do
> to make this work? Without the doctype the page seems ok. TIA
>
>



 
Reply With Quote
 
Kathleen Anderson [MVP - FP]
Guest
Posts: n/a
 
      13th Apr 2004
Catherine:
IIRC, with that DOCTYPE, cell contents inherit their alignment from that
specified for the table. So if a table is centered, you need to specify
different alignment for the cells if you don't want them centered as well.

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


Catherine Jo Morgan <(E-Mail Removed)> wrote:
> On the test page at http://www.cjmorgan.com/modern-abstract-art.htm
> if I add a doctype declaration above the <html> then it looks ok in
> normal view, but in preview the H1 and left hand navigation are both
> centered.
>
> The doctype I tried is
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
> Maybe I need a different one? Or maybe there's something else I need
> to do to make this work? Without the doctype the page seems ok. TIA


 
Reply With Quote
 
Catherine Jo Morgan
Guest
Posts: n/a
 
      13th Apr 2004
Someone pointed out some <center> code that I hadn't seen was there. When I
took it out, the problem disappeared. Thanks for help from both of you.

"Kathleen Anderson [MVP - FP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Catherine:
> IIRC, with that DOCTYPE, cell contents inherit their alignment from that
> specified for the table. So if a table is centered, you need to specify
> different alignment for the cells if you don't want them centered as well.
>
> --
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> http://www.spiderwebwoman.com/resources/
>
>
> Catherine Jo Morgan <(E-Mail Removed)> wrote:
> > On the test page at http://www.cjmorgan.com/modern-abstract-art.htm
> > if I add a doctype declaration above the <html> then it looks ok in
> > normal view, but in preview the H1 and left hand navigation are both
> > centered.
> >
> > The doctype I tried is
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd">
> >
> > Maybe I need a different one? Or maybe there's something else I need
> > to do to make this work? Without the doctype the page seems ok. TIA

>



 
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
Center a word and the whole document centers. =?Utf-8?B?RGF2aWQgRg==?= Microsoft Word Document Management 2 30th Nov 2005 09:58 PM
DOCTYPE centers everything W3C newbie Microsoft Frontpage 11 29th Jun 2004 07:02 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.