Re: Problem page IE clear float problem, Opera/FF header problem and N4
- From: Rincewind <the_rincewind@xxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 09:36:32 GMT
On 11 Sep 2005 17:41:33 -0700, ima wrote:
> Thanks for taking the time to point out that link. I found out that
> the vast majority of the errors were due to a habit of typing tags in
> caps (which doesn't work so well with css).
As far as i'm aware that doesn't make any difference.
> I've cleaned up the errors
> that I could understand but I still have 8 errors which are suppose to
> be missing quotes or tags but those quotes and tags are already there,
> so I'm not sure what I can do to convince the validator that they are
> there.
It hasn't helped that you have changed your Doctype declaration and not
really understood why, you have therefore left bits of XHTML in there that
are now causing problems.
Change your top 2 lines:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
as they are not compatable. I would suggest you go for a strict doctype,
such as:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
doing that and replacing the XHTML end tags " />" with HTML tags ">" will
sort all but three of the problems.
These are because your misusing the "a" tag, you can't have two "alt" 's
alt is for an alternative text if the pic doesn't display for whatever
reason. All your links should look like <a href="picture_path.jpg"><img
src="picture_name.jpg" alt="Alternative Text for Picture Here" width ="91"
height ="121"></a><p class="caption">Your_ Caption_Here</p></div>
Remember also to remove the spaces between " and 91" and " and 121
throughout your document, it will then validate.
>I finally realized that the id that you were referring to was
> mainimage which I did try to call several times. I've tried to change
> that to a class but no I've lost my float left (along the image) format
> in ALL browser versions.
Yes but you also have to change your CSS file, an id is prefixed with a #
a class is prefixed with a . and I notice that there are now no references
to id="mainimage" in your HTML file but that they are still in your CSS
file all you needed to do was change the repeated ID #'s for class .'s
.
- Follow-Ups:
- References:
- Prev by Date: Re: Problem page IE clear float problem, Opera/FF header problem and N4
- Next by Date: how does www.windowsupdate.com's layout works?
- Previous by thread: Re: Problem page IE clear float problem, Opera/FF header problem and N4
- Next by thread: Re: Problem page IE clear float problem, Opera/FF header problem and N4
- Index(es):
Relevant Pages
|