RE: topmargin/leftmargin validation

by "Captain F.M. O'Lary" <ctfuzzy(at)canopy.net>

 Date:  Wed, 31 Jan 2001 15:34:13 -0500
 To:  Dennis Lapcewich <dlapcewich(at)intira.com>,
hwg-basics(at)hwg.org
 Cc:  "'sfmalo'" <sfmalo(at)msn.com>
 In-Reply-To: 
  todo: View Thread, Original

Grrrrr. "Ignore it" Dennis says . . .  :-)

<.!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">

Take out the little dot at the beginning and paste it into the top of your
page and revalidate. The margins will validate, but the rest of the browser
specific attributes not part of the MSIE dtd will not.

Soap box time:

The attributes you are trying to use are browser specific  - period. You
can include NN's proprietary code and *hope* one browser doesn't trip over
the others *proprietary* code if you want to. Personally, I would suggest
you stop trying to do page layout in markup language.

It is like trying to get a six second quarter mile out of a VW. You can't
do it in the normal realms of possibility. And if you do manage to figure
out a way to "hack" that 6 second run, somebody is probably going to get
hurt in the process.

HTH,
Fuzzy.

At 12:42 PM 1/31/01 -0600, Dennis Lapcewich wrote:
>
>> According to my HTML 4.0 book and a fellow web designer,
>> I.E. supports the topmargin, leftmargin, bottommargin, and
>> rightmargin attributes for the <.body> tag. According to
>> W3C's Validator for 4.01 Transitional, I get this
>> message: <.body bgcolor="#fefefe" leftmargin="0" topmargin="0">
>> 
>> Error: there is no attribute "LEFTMARGIN" and
>> 
>> Error: there is no attribute "TOPMARGIN"
>> 
>> Confusing. And, of course, it does what it's supposed to
>> do for the page but W3C doesn't like it. This is the only
>> error message I get, so I can't validate the page.
>> Any comments/suggestions?
>> 
>> P.S. Is there a workaround to please Netscape 4.x and 6 (ha, ha)?
>> 
>
>Sharon,
>
>Fuzzy and other on this list will correct me if I am wrong but ...
>
>IE supports topmargin, leftmargin, bottommargin, and rightmargin attributes.
>NN supports marginheight and marginwidth attributes.
>
>Kill two birds with one stone and do this ...
>
><.body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
>
>Netscape ignores the leftmargin and topmargin attributes and Microsoft
>ignores the marginheight and marginwidth attributes.
>
>If this is the only W3C validating error, ignore it.  :)
>
>Dennis
>
>
>
______________________________________________________________
Captain F.M. O'Lary
webmaster(at)canopy.net
Another year ends.
All targets met. All systems working. All customers satisfied.
All staff eagerly enthusiastic. All pigs fed and ready to fly.
------------------------------------------------------------------

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA