Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated.....
-
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
-
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
What about this??
style="border:0px"
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
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
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)
-
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)
actually
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
-
actually
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
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)
-
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
Visual Studio 2005 recommends the same via stylesheets.
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
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)
-
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