PDA

View Full Version : Problem in Explorer, not FireFox



DiTryin
01-16-2009, 12:13 PM
Hi all!

I built my site and everything looks fine in FireFox but when I looked at it in Explorer, the table at the bottom with the links, copyright, etc. was no longer centered - it was smashed to the left.

So I've been fooling with the code for hours...

Made sure the table was centered - didn't help.

Added Div = center - didn't help.

Even did a test page where I set the alignment to the right - and it was still smashed to the left in Explorer.

:confused:

HELP!! Please!!

The site is http://www.write-your-first-ebook.com

The test page is http://www.write-your-first-ebook.com/Footer_Test.html

I was all ready to launch it and then I saw this. :(

Thanks a bunch!!!

Diane

felgall
01-16-2009, 03:00 PM
You are using an incomplete doctype and so IE is using quirks mode.

DiTryin
01-17-2009, 10:32 AM
Thanks for your reply... but...

I Googled doctypes and read about strict, loose, etc., but...

I'm using Composer, the HTML editor that comes with SeaMonkey, Netscape, etc., and that doctype is built-in. I can't change it. I can change anything from the top html down.

I tried to paste the 'loose' version in anyway and uploaded a trial page but it appears that line got stripped out in the process.

I tried removing the table at the footer and just pasting in the links and copyright in the center and they're all smashed to the left too.

Every page has numerous tables, most nested inside another and they're all fine in Explorer except for the footer. [Ironically, the footer table is fine on 2 out of 40+ pages - go figure?!]

Since all the other tables are fine, I just figured something was out of whack in the code... but I can't find it.

So... do you have any suggestions on how to fix this??? And please don't say "Buy Dreamweaver," etc. Not an option right now. I've built a number of other sites with Composer and hadn't had this happen before.

Thanks!

Diane

DiTryin
01-17-2009, 10:40 AM
After I posted that, I tried editing that Footer_Test page in the HTML editor on my cpanel. It let me paste in the loose version, but when I saved it in design mode, it was back to the way it was before.

Grrrrr..... :mad:

pmbinky
01-17-2009, 11:07 AM
I looked at your source and without spending to much time on it, I added a row below the row you are having issues with, I copied your text and pasted it into my new row and it displayed just like you want. At this point I just removed the bad row.

My guess is that there is something in your <tr> or <td> elements that is inheriting something from someplace else. I also noticed that just bu deleting some of the '&nbsp' and <br> elements in your row I was able to modify the centering of the whole row.

Hope this helps.

blessings,
Tony <><

felgall
01-17-2009, 01:45 PM
Composer is a really antuiquated editor that was rewritten long ago into an editor called NVU which has subsequently been updated and is now called Kompozer.

The only doctype you should be using in new web pages is:


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

written exactly like that. The other doctypes are only for old pages and experimental pages.

DiTryin
01-17-2009, 01:53 PM
Yea!!!

I just knew it had to be something stupid in the code since every other table was fine but that one. It almost looked like there was something on the right that was forcing it to squish to the left...

... and sure enough... there was a width = 50

Once I removed that, it fixed it.

YEA!!!

Now to fix it on all the pages... <sigh> I've got to learn CSS. :p

Thanks for trying to help! I appreciate that!

Oh, like I said... I can't change the doctype. I tried. Repeatedly. In three different editors, including the one in my cpanel.

Diane

wysiwyg
01-17-2009, 02:22 PM
Oh, like I said... I can't change the doctype. I tried. Repeatedly. In three different editors, including the one in my cpanel.

You can't open the document in a text editor and edit it?

felgall
01-17-2009, 04:22 PM
Any decent wysiwyg web editor also has a code view where you can directly edit the HTML.

DiTryin
01-18-2009, 08:54 PM
I tried in Composer... I tried in SeaMonkey - which I just downloaded... and I tried in my cpanel HTML editor. I deleted that line at the top and pasted in the one you mentioned, switched back to design mode to save it, didn't see that it solved anything, went back to the code again and it was gone.

Don't ask me... can't explain it... I tried, but it wasn't the problem anyway.

One day I'll switch up to Dreamweaver or some sweet editor...

Thanks again for your help!!!!

felgall
01-18-2009, 10:29 PM
So switch to Kompozer. It is a free download that should work very similar to the way Composer does since it was originally derived from that editor many years ago. Composer is way out of date. Kompozer is the up to date version of the editor.