Valid alternative for marginwidth="0" marginheight="0" leftmargin="0"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Libertine
    sex dwarf
    • May 2002
    • 17860

    #1

    Valid alternative for marginwidth="0" marginheight="0" leftmargin="0"

    Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?
    /(bb|[^b]{2})/
  • Libertine
    sex dwarf
    • May 2002
    • 17860

    #2
    Anyone?
    /(bb|[^b]{2})/

    Comment

    • Fabuleux
      Confirmed User
      • May 2003
      • 2543

      #3
      Maybe CSS is an option?

      Comment

      • Voodoo
        ♥ ♦ ♣ ♠
        • Sep 2002
        • 10600

        #4
        Originally posted by punkworld
        Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?
        Don't forget bottommargin="0".

        "I'm selflessly supporting the common good, but only coincidentally looking out for No.1."

        Comment

        • ronbotx
          Registered User
          • Jan 2002
          • 1634

          #5
          Originally posted by punkworld
          Anyone know an alternative for <b>marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"</b> that does the same but is considered valid in XHTML 1.0 Trans?
          You really need to use CSS for the presentation part with XHTML. Dreamweaver MX can generate XHTML 1.0 tran pretty easily and that is not too hard to get validated. Getting the associated CSS file to validate is some real work.

          Using XHTML is a smart move since everything is eventually moving in the XML direction and XHTML is a good way to transition.

          Comment

          • Libertine
            sex dwarf
            • May 2002
            • 17860

            #6
            I'm already using CSS, ofcourse. Just didn't know the:
            body { margin: 0; }

            Doh!
            /(bb|[^b]{2})/

            Comment

            • Libertine
              sex dwarf
              • May 2002
              • 17860

              #7
              Originally posted by ronbotx


              You really need to use CSS for the presentation part with XHTML. Dreamweaver MX can generate XHTML 1.0 tran pretty easily and that is not too hard to get validated. Getting the associated CSS file to validate is some real work.

              Using XHTML is a smart move since everything is eventually moving in the XML direction and XHTML is a good way to transition.

              Getting CSS to validate isn't really that much of a problem, if you write it yourself. The only problem is scrollbar manipulation, since that officially doesn't exist
              /(bb|[^b]{2})/

              Comment

              • ronbotx
                Registered User
                • Jan 2002
                • 1634

                #8
                Originally posted by punkworld
                I'm already using CSS, ofcourse. Just didn't know the:
                body { margin: 0; }

                Doh!
                What I do is define a custom class, that way I can apply it different elements on a page using the "class =" attribute.

                This book
                "Cascading Style Sheets (CSS) by Example by Steve Calihan"
                help make this complicated subject a lot clearer for me. CSS is the way to to go. Have fun!
                Last edited by ronbotx; 09-21-2003, 07:51 AM.

                Comment

                • Libertine
                  sex dwarf
                  • May 2002
                  • 17860

                  #9
                  Originally posted by ronbotx


                  What I do is define a custom class, that way I can apply it different elements on a page using the "class ="

                  This book
                  "Cascading Style Sheets (CSS) by Example by Steve Calihan"
                  help make this complicated subject a lot clearer for me. CSS is the way to to go. Have fun!
                  Yes, everyone does that.
                  /(bb|[^b]{2})/

                  Comment

                  Working...