Re: Problem page IE clear float problem, Opera/FF header problem and N4



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
.



Relevant Pages

  • Re: Using a CSS in a document
    ... Heading1 is H1 in your css, ... To find the best Newsgroup for FrontPage support see: ... | relates the CSS to the HTML file. ... | Normal view), select my text, and add one of the tags from my CSS file. ...
    (microsoft.public.frontpage.client)
  • Re: A new JavaScript tutorial(Beta)
    ... >> from HTML. ... >> two tags very well - they have awesome powers. ... >> alliance with CSS are currently posing a great threat to the other ... which is block level and to which any CSS styling can be applied. ...
    (comp.lang.javascript)
  • Re: CSS basic question
    ... | to attach a CSS file in the parent web to an HTML in the subweb. ...
    (microsoft.public.frontpage.client)
  • Re: Using Background-Image to Replace Text (FIR) etc..
    ... > marked up by CSS to be invisible or hidden. ... > If I want to replace headings with images (because my client wants to ... > Clearly, I can use img tags with the relevant alt tag, but that loses ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: master page issue
    ... on the pages causing problem. ... If you want to go the CSS route, it is easier if everything is in DIV tags, but a mixture of tables and CSS is not a bad thing. ... I'm using a table in my master page and i checked and double checked the ...
    (microsoft.public.dotnet.framework.aspnet)