Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated.....

Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated.....

Scheduled Pinned Locked Moved Web Development
tutorialquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Psycho Coder Extreme
    wrote on last edited by
    #1

    I get this as a warning in VS2005 when setting the border="0" of an image that is a link (without it theres an ugly border around the image, which I dont want).

    Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated. A newer construct is recommended

    Anyone know how to solve this while getting rid of the "outdated" construct? h

    "Okay, I give up: which is NOT a real programming language????" Michael Bergman

    M V 3 Replies Last reply
    0
    • P Psycho Coder Extreme

      I get this as a warning in VS2005 when setting the border="0" of an image that is a link (without it theres an ugly border around the image, which I dont want).

      Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated. A newer construct is recommended

      Anyone know how to solve this while getting rid of the "outdated" construct? h

      "Okay, I give up: which is NOT a real programming language????" Michael Bergman

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      What about this?? style="border:0px"

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • P Psycho Coder Extreme

        I get this as a warning in VS2005 when setting the border="0" of an image that is a link (without it theres an ugly border around the image, which I dont want).

        Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated. A newer construct is recommended

        Anyone know how to solve this while getting rid of the "outdated" construct? h

        "Okay, I give up: which is NOT a real programming language????" Michael Bergman

        M Offline
        M Offline
        Michael Sync
        wrote on last edited by
        #3

        Psycho-*Coder*-Extreme wrote:

        without it theres an ugly border around the image, which I dont want

        I have tested both ASP.NET image and HTML image as below. I didn't get the border that you mentioned. eg: Maybe. you can try like that if you are still getting the border that you dont want. Hope it helps. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        P 1 Reply Last reply
        0
        • M Michael Sync

          Psycho-*Coder*-Extreme wrote:

          without it theres an ugly border around the image, which I dont want

          I have tested both ASP.NET image and HTML image as below. I didn't get the border that you mentioned. eg: Maybe. you can try like that if you are still getting the border that you dont want. Hope it helps. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          P Offline
          P Offline
          Psycho Coder Extreme
          wrote on last edited by
          #4

          actually

          About Us

          without the border="0" will indeed put an ugly border around the image (when the image is enclosed in an a href tag), it's been that way since the dawn of HTML but the new XHTML validation doesn't allow this. I ended up making a CSS class that has

          border-top-style: none;
          border-right-style: none;
          border-left-style: none;
          border-bottom-style: none;

          and it got rid of the border. I went with the CSS class so I didn't have to put style="" on every link image in the site (there are 77 pages in the site) and with this class (yes I did have to add the class="" to all the images but if I have to alter/add anything to the images in the future I change the CSS class and not all 77 pages).

          "Okay, I give up: which is NOT a real programming language????" Michael Bergman

          M 1 Reply Last reply
          0
          • P Psycho Coder Extreme

            actually

            About Us

            without the border="0" will indeed put an ugly border around the image (when the image is enclosed in an a href tag), it's been that way since the dawn of HTML but the new XHTML validation doesn't allow this. I ended up making a CSS class that has

            border-top-style: none;
            border-right-style: none;
            border-left-style: none;
            border-bottom-style: none;

            and it got rid of the border. I went with the CSS class so I didn't have to put style="" on every link image in the site (there are 77 pages in the site) and with this class (yes I did have to add the class="" to all the images but if I have to alter/add anything to the images in the future I change the CSS class and not all 77 pages).

            "Okay, I give up: which is NOT a real programming language????" Michael Bergman

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            Yeah. Making CSS class is better... I think you can use this one line border:0px; instead of four lines..

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

            E 1 Reply Last reply
            0
            • P Psycho Coder Extreme

              I get this as a warning in VS2005 when setting the border="0" of an image that is a link (without it theres an ugly border around the image, which I dont want).

              Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated. A newer construct is recommended

              Anyone know how to solve this while getting rid of the "outdated" construct? h

              "Okay, I give up: which is NOT a real programming language????" Michael Bergman

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              Visual Studio 2005 recommends the same via stylesheets.

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              1 Reply Last reply
              0
              • M Michael Sync

                Yeah. Making CSS class is better... I think you can use this one line border:0px; instead of four lines..

                Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

                E Offline
                E Offline
                Ed Poore
                wrote on last edited by
                #7

                Or border: none; I think.


                My Blog[^]

                M 1 Reply Last reply
                0
                • E Ed Poore

                  Or border: none; I think.


                  My Blog[^]

                  M Offline
                  M Offline
                  Merlin Tintin
                  wrote on last edited by
                  #8

                  To apply no border on all image use this stylesheet: img { border:0px; } (tested on FF and IE)

                  La Richesse & la Gloire ne griseront jamais que les temples

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups