PDA

View Full Version : Why is my page format breaking??



joehickman
08 May 2007, 12:50 AM
On this site:

http://www.mustangagency.com

The page format in the menu and up, breaks constantly. I remember having this same problem when I first started making websites, anyone have any ideas?

Please!! Help....

http://i86.photobucket.com/albums/k98/joezerosum/wtf.jpg

Wickham
08 May 2007, 05:10 AM
I found it displayed perfectly in IE7 and Firefox, but loaded a bit slowly. I refreshed and again saw the problem you describe, including black boxes along the middle menu items Alternative, Country, etc briefly as it loaded but it has always been OK when fully downloaded.

I couldn't see anything wrong with the table structure - you have 17 cells in each row - so it's probably due to the javascript. Perhaps it's loading slowly sometimes or not finishing loading. I'm not a javascript expert so I hope someone else can help; or re-post on the javascript board and ask if the javascript is causing the problem.

You haven't got a doctype but I don't think it would make any difference. Try adding
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
right at the top of the html file above the <html> tag.

I tested with the validator http://validator.w3.org/ which showed eight errors without a doctype, seven with one, but they seem trivial and don't seem to be connected to your problem.