Freepages-Help-L Archives

Archiver > Freepages-Help > 2006-02 > 1139492310


From: Pat Geary <>
Subject: Re: [FreeHelp] Coding on my page and validation problems
Date: Thu, 09 Feb 2006 08:38:30 -0500
References: <003f01c62d2d$09e44190$a17ba8c0@NEMESIS>
In-Reply-To: <003f01c62d2d$09e44190$a17ba8c0@NEMESIS>


At 10:58 PM 2/8/2006, Jenny Volker wrote:
>I just put up on draft index page at www.rootsweb.com/~azmwwduv/index2.shtml

As Michael says you need a full doctype.


>When I validated my page, I had quite a few errors:
>
>1) Can you tell me how a center my title.jpg? When I use <.center>
>(without the period), the validator tells me it is not a valid
>code. Is there a code I should put in my stylesheet? This is the
>same problem I have with my separator (bar) graphic.


Use an inline style -

<p style="text-align: center"><img border="0"
src="jenny_files/title.jpg" width="400" height="200" alt="Daughters
of Union Veterans of the Civil War, 1861-1865"></p>

I have included both the width and height of the image AND
border="0". It will validate and tells the browser that it should
save this amount of space for the graphic.

OR you can create a class in your style sheet and apply it.

notice dot ctr

.ctr {
text-align: center;
}

<p class="ctr"><IMG alt="Daughters of Union Veterans of the Civil
War, 1861-1865"
src="jenny_files/title.jpg"><IMG alt=bar src="jenny_files/bar.jpg">
</p>





>2) Could you tell me how to make the borders on my images
>"none"? When I use <.border="0">, I am also told this is not valid.

See above


>3) Is there a way to get the javascripting (used for my email
>address) to validate? Is it written wrong or just not something the
>validator picks up?




>4) Is there other coding in my index page that I should take out
>and place in my stylesheet instead? Am I right that the index page
>needs to have the "shtml" extension?

You can move the styling for the footer into the style sheet -

.footer {
font-size: 1px;
font-style: italic;
}

and apply. Make whatever changes you might want in size of font.


>5) Finally (one can only hope), did I do the coding for SSI
>correctly? Is the SSI page (footer.html) supposed to be a complete
>html page (including head, body, etc.) or just the piece I want
>inserted (which is how I wrote it)?


I have only used SSI on one page and it is text
based.
http://freepages.genealogy.rootsweb.com/~gearyfamily/server-side-includes.html

I believe what you have done is correct since you can see the footer
with no problem. I also think I read that yes the page does have to
be shtml although I do not know that for sure.

You are doing a nice job

pat

____________
Pat Geary
http://www.family-genealogy-online.com/
http://www.family-genealogy-online.com/building-webpages.htm
http://www.blog.family-genealogy-online.com/


This thread: