Welcome to WebmasterWorld Guest from 54.157.222.62

Forum Moderators: incrediBILL

Message Too Old, No Replies

strict validation and css

   
11:04 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



hi

sorry another question (and i really can't find the answer to this one!)

i have one thing left for it to validate but i can't for the life of me see why it is insisting on this...

the code is

<div id="leftColumn">
<h3>introduction</h3>
<p align="justify"><b>At present over 125 million children around the world of primary school age are not in school.</b> This means that a staggering one in five children are not receiving even the most basic of primary educations. </p>
<p align="justify">Many families live in poverty and cannot afford to send their children to school. This lack of education locks families into a cycle where each generation grows into adulthood without qualification and unable to provide the education for their own children that would break the cycle for them.</p>
<p align="justify">In today's highly integrated world where economic activity is increasingly knowledge based, it is becoming ever more vital for a nation to provide a decent education for all its children if it is to ever lift its people out of poverty.</p>
<p></p>
</div>

and it is what i have highlighted in bold that it won't let through. i really can't figure out why. it allows it everywhere else?!

any ideas?

thanks,

jim

11:05 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



sorry i should add that the error message is

Line 53, column 13: there is no attribute "ALIGN" (explain...).
<p align="justify"><b>At present over 125 million children around the world

cheers,

jim

11:06 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



The Align atttribute is not valid, neither is <b> use <strong> instead.
11:10 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



oh i see... that is the first instance of it and when i remove it...........

gotcha (so why does DW2004 use these tags?)

thanks a lot.

do you know what i can put instead?

cheers

jim

11:11 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



it allows it everywhere else?!

Actually, it doesn't... It just saves you the trouble of reading mutiple lines with the exact same error ;)

Which DTD are you validating against?
Have you considered using CSS?

p {
text-align: justify;
}

Also, you shouldn't use empty paragraphs <p></p>. User agents are supposed to ignore them.

11:11 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



so why does DW2004 use these tags?

Because nothing beats handcoding ;)

11:13 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



gotcha (so why does DW2004 use these tags?)

Cause dreamweaver sucks ;)

Try using <p style="text-align:justify;> instead.

<edit>looks like doc beat me to it</edit>

11:15 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



Because nothing beats handcoding ;)

that may well be true and i hope to join you one day but i'm still very new to this :( (and it still doesn't excuse DW!

anyways thanks for the advice :)

jim

11:19 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



hooray! i am validated (do i get a badge or something?)

only another squillion pages to go.....

11:25 pm on Oct 30, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Well done ;)