Hi all, i'm trying to validate my pages here at padprint.com.au but im getting some errors i need some help with. I'm going for HTML 4.01 Strict but im not sure if its possible with what im doing.
I did it on www.padprint.com.au/home.html and i get about 13 errors, however most of them are the same. The first five done like anything about this code:
I have no idea why it does this one, maybe it doesnt like where it is, but i have other occurences of this and it doesnt complain about them.. so im very confused.
As you can see nothing major just a few annoying things stopping me from validating, any help would be great, thanks all!
Apparently there is no attribute border in an image tag, is this correct? I thought there was and it displays a border, maybe its just not part of html strict?
Lastly, whenever i have a php reference it doesnt like it, like something.php?option=xx&type=yy.
it doesnt validation with that sort of stuff, is it simply not possible to validate when including php?
[This message has been edited by H][RO (edited 10-09-2003).]
1. In my css file i have body { margin:0px;} but it doesnt set the margins to 0 in opera,mozila, or netscape unless i have it as ive shown above for some reason? it is supposed to work thought is it?
5.So putting & in a php string still works does does it?
Error 1-5 should all be set with CSS.
Error 6-12 has to do with the Flash. IMO it's not _that_ big of a deal if it doesn't validate. See the article Emperor talked about though: http://www.alistapart.com/stories/flashsatay/
Error 13, put it in a paragraph. Though I don't really see the need of it. If you want a link to go to the top of the page, just use href="#".
[This message has been edited by HZR (edited 10-09-2003).]
I know 1-5 should be set in CSS and they ARE, my problem is that opera etc dont seem to recognise that they are, here is my css code i think its all i need isnt it for that part?
body /*Main Body Settings*/
{
padding: 0px;
margin: 0px;
background-color: white;
background-image: url(Art/background.jpg);
background-repeat: no-repeat;
background-position: top left;
}
Honestly im not too fussed about it, im not going to put a w3c logo on or anything. As long as most of the code validations (i.e i have done stupid stuff) then its ok for me. My main concern obviously is that it works in most browsers, and if i need to put something in the code that breaks validation to do that then i will.
Having said that it should work for opera =/ and im using version 6.03. Imight install version 7 see how that goes. But it was the same for netscape 6 and mozilla, they didnt want to recognise margin=0px either...
Pretty good read that...
Anyhow i've had a go... Now i took out the 'px' in the .css file - no change.
The only way i could get it to work was putting the
body
{margin:0; padding:0;} in the header. for some reason it wont work from the linked file.
Can anyone explain why this would happen? The rest of the css formatting is working fine so it must be importing the file ok, and all it does is place the css code where that link is referenced anyhow so i dont see the problem.
I see the problem. You have this in your CSS file:
quote:<style type="text/css">
That's HTML, and you're forcing the browser to parse it as CSS, which obviously won't work. Remove it, and you shouldn't have any problems. You only need that code for embedded stylesheets, not for external ones.
From: Northumberland, England Insane since: Apr 2003
posted 10-11-2003 22:40
I have problems with the margin in opera too - moz and ie seem to respect the body {margin:0px} but opera 6 and 7 both don't obey it - I use a valid XHTML Transitional Doctype and find that the only way to get opera to get rid of the left and right margins is to use marginheight="0" marginwidth="0" which immediately invalidates any code I write
I'm not to cut up about not validating, but it does suck a bit when browsers don't obey what they claim to.
As mentioned previously, maybe the Doctype needs to be XHTML Strict to fix opera. If I can be arsed I'll do some tests sometime soonish, but for now I'll just not validate and be proud of it!