PDA

View Full Version : other way to do border="0px' on an image ?



[Oli]
02-01-2008, 04:49 PM
Okay, so I'm coding 2nd-Design v2.0

I'm all done now appart from 3 small icons I have put a test link (#) on.

I want it to be Valid XHTML 1.0 Strict! (which is not the normal thing most use)
So as it's xhtml STRICT when placing an image:

<a href="#"><img src="link" alt="imagename" border="0" /></a>

the border="0" is not allowed in xhtml strict.

my css already has

text-decoration: none;
border: 0px;

is there any other way to do this ? becouse in Safari (mac) it's fine but Firefox has that blue/purple border arround it.

Blob
02-01-2008, 04:56 PM
;4317925']Okay, so I'm coding 2nd-Design v2.0

I'm all done now appart from 3 small icons I have put a test link (#) on.

I want it to be Valid XHTML 1.0 Strict! (which is not the normal thing most use)
So as it's xhtml STRICT when placing an image:

<a href="#"><img src="link" alt="imagename" border="0" /></a>

the border="0" is not allowed in xhtml strict.

my css already has

text-decoration: none;
border: 0px;

is there any other way to do this ? becouse in Safari (mac) it's fine but Firefox has that blue/purple border arround it.

#no_border
{
border: 0;
}

<a href="#"><img src="link" alt="imagename" id="no_border" /></a>

MrCraig
02-01-2008, 04:58 PM
Id just do..



<style type="text/css">
<!--
img{border:0px;}
-->
</style>

[Oli]
02-01-2008, 05:02 PM
Okay, I'll see what I can do.

Thanks both of you ;)
+rep

edit= sorry craigg must spread :l

MrCraig
02-01-2008, 05:09 PM
no problem oli :P

Blob
02-01-2008, 05:24 PM
thanks for the rep

Want to hide these adverts? Register an account for free!