Re: [extend-a-story-devel] Documentation now XHTML 1.1 Compliant
Interactive and Extendable Story
Brought to you by:
jjweston
|
From: Jeff W. (S. Toby) <jjw...@ke...> - 2003-07-24 06:23:52
|
On Wed, 23 Jul 2003, Matthew Fringe Duhan wrote:
> I believe that you will want to set the table class as below in order
> for it to be 500px wide and centered.
>
> { margin-left: auto; width: 500px; margin-right: auto; }
>
> See these examples for why this works:
> http://www.w3.org/Style/CSS/Test/CSS1/20020115/test412.htm
> http://zvon.org/xxl/CSS2Reference/Output/index.html
Okay... The funny thing about the problem is that my style declaration
looks just like what you used above. I did try your test page out in IE,
and when it worked, I went on a thorough search for what was different
between what they're doing, and what I'm doing. The problem? IE craps out
when I include the <?xml> tag bit at the top of the file. If I remove
that, IE renders the page correctly. The problem is that without the
<?xml> tag, the W3C Validator can't determine the encoding type. So, to
make the validator happy, I have added a <meta> tag that specifies the
encoding type, just like what they did with the test code. What a pain...
But, the pages now render fine in IE. I've committed these changes to CVS.
I'm still having my users beat on the new pages. I'll let them know that
the IE centering issue is now fixed so they'll take another look.
Any more thoughts on my use of the <div> tag to acheive centered text? Any
other suggestions for the new coding standard we're working towards?
I'll probably start looking at converting over the simple php scripts to
XHTML 1.1 soon. Things like the statistics page, or the search form should
be easy. Episode creation, reading episodes, and the admin page will
likely be a lot harder...
--
Jeff Weston (Sir Toby)
|