Results 1 to 2 of 2
  1. #1

    Converting tags like topmargin to valid xhtml

    I tried to validate a test page and amongst other things I get this
    (First I used Dreamweaver's MX convert to xhtml):

    there is no attribute "topmargin", leftmargin, topmargin, marginwidth, marginheight
    this is usually fixed by using CSS to achieve the desired effect instead).

    there is no attribute "background"

    ...acing="0" cellpadding="0" background="images/backd.gif">

    This is the code I have now
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" vlink="#FF6633" link="#FF6600" background="../images/home.gif">
    I use these attributes so as not to have extra margins on my site but I am not sure how to move them to the css. Similar with the bacground attribute Any css gurus there?
    Last edited by spiros; 06-23-2005 at 11:03 AM.

  2. #2
    Join Date
    Jul 2003
    Castle Pines, CO
    Check out CSS Margin Properties

    You can use something like:
    <style type="text/css">
    margin: 0
    And I would also take a look at CSS Pseudo-classes to apply the appropriate classes to your hyperlinks as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts