Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'bod

Discussion in 'ASP .Net' started by anonymous, Aug 2, 2006.

  1. anonymous

    anonymous Guest

    Hello I am developing something along with my friends
    and when I load their asp pages I am getting this error

    Anybody has any idea why is the XHTML validation failing

    Thanks in Advance

    -Newbie
    anonymous, Aug 2, 2006
    #1
    1. Advertising

  2. anonymous

    Guest

    Re: Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' isnot a valid attribute of element 'body'.

    leftmargin is not an attribute of body. You should replace that with
    style="margin-left: 1em;" or whatever value you have for your left margin.

    You should avoid using all properties that specify how a tag should
    'look', use css instead.

    For a good guide to css check out http://www.w3schools.com/css/default.asp

    //Mats

    anonymous wrote:
    > Hello I am developing something along with my friends
    > and when I load their asp pages I am getting this error
    >
    > Anybody has any idea why is the XHTML validation failing
    >
    > Thanks in Advance
    >
    > -Newbie
    >
    >
    , Aug 2, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page