Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dolphindolphin

macrumors regular
Original poster
May 29, 2008
219
4
New York
Hi all,

I am knee deep in my first web development project and I have a few questions.

First off here is my website: www.hamletfoil.co.cc
It isn't complete in terms of text, but most of the code is in place.
The first problem I'm getting is that when I visit my site in safari for windows, I get white rectangular boxes on various parts of the page. I asked a friend to visit the site on his desktop using mozilla 3 and he got different white boxes. What's going on here?

Secondly, I might be an idiot, but on the top of www.hamletfoil.co.cc/index-1.html is an "s" and a white box spanning the entire page. I cannot find this in my code. What happened?

Thirdly, the "contact the webmaster" on the bottom of www.hamletfoil.co.cc/index-3.html is messed up, however, it utilizes the same code as the other pages. Why is this happening?

Here are some screenshots with the boxes:

attachment.php


attachment.php

Please give me any advice/criticism/questions/comments that come to mind.

Thanks guys

EDIT: Fixed the "s" problem.
 
Your code is not very standards compliant, and that will cause problems in browsers like Safari.

The majority of your problems can be solved by declaring a doctype. Try
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
(That needs to go on a line preceding the <html> start tag)

After that I recommend going to http://validator.w3.org/ to validate your code, and fixing the errors it lists.

I was able to solve the "white box" issues by doing this.
 
Your code is not very standards compliant, and that will cause problems in browsers like Safari.

The majority of your problems can be solved by declaring a doctype. Try
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
(That needs to go on a line preceding the <html> start tag)

After that I recommend going to http://validator.w3.org/ to validate your code, and fixing the errors it lists.

I was able to solve the "white box" issues by doing this.

Thank you for this piece of info.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.