...

View Full Version : IE & Firefox alignment problems



toraymoray
06-19-2012, 09:48 PM
My header is centered (the way it should be) in Firefox but right aligned in Internet Explorer. HELP! i don't know how to fix this.

http://www.mchistory.org/mcmh_about_museum.html

it happens on a few other pages on the site as well. oy.

Thanks for your help in advance.

EpicWebDesign
06-20-2012, 12:05 AM
Um.... there's a LOT of problems with your code. Just a few issues:

1. Your <title> tag is in the body of the site -- move it up to the <head> where it belongs.

2. You have 2 main tables, which are separated in the middle of your page by a a javascript function AND a style sheet. There are so many <tr> and <td> tags in each table that are either single cells or span multiple columns and/or rows that it's super hard to track. However, it appears that some rows/columns have too many cells (or not enough cells)... Might want to double check those.

3. Why is everything hard-coded even though you have a style sheet? (Speaking of which, your style sheet should not be randomly slapped into the middle of the <body> of your page. You should call it externally.)

4. You call the following code in the middle of your page body:

<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<!--- include header --->
That meta tag is already included in the <head> and doesn't belong in the body.

5. Not sure what this was intended to do, but it certainly isn't calling a javascript file! It's calling another html page (which actually does include the code for your header) but you're not using any divs, spans or frames so it's just kinda hanging out there:

<script language="javascript" src="header.html"></script>

6. Then you have the 2nd table which, after further review, has another 4 or 5 tables nested inside it.

I hate to say it, but it's a mess! The copyright of 2007 is a dead giveaway this site isn't going to work right in certain browsers. It's outdated code and needs to be re-written (and I'd suggest a bit of a makeover. A site that is only 754p wide is really small on a standard monitor today.

toraymoray
06-20-2012, 11:10 PM
thanks for your help, i'll work on this Friday. i didn't write the code, i'm just trying to fix it and i'm learning as i go along! we don't have a contract with the company that built the site so we get basically no customer service. I'll probably check back here on Friday with more questions. THANK YOU!

EpicWebDesign
06-22-2012, 05:21 AM
Please feel free to PM me! I hate it when I deal with clients who are left with a bad developer from years prior who offer no assistance. I will do what I can to assist you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum