Css Div Border Image

Sep 07
2011

css div border image
I have the bottom and right border around image even if I put img border=”0″ in xslt and css file, on IE6.Why?

In IE7 don’t have these borders.
The code from xslt is:



and from css is:
.ReportImage
{
position: relative;
border-color:Transparent;
padding: 0pt 0pt;
}
Thanks!

Short answer: IE6 is full of bugs. Use a proper browser instead.

Longer answer: There is no closing tag, the whole thing should be . The line breaks in your code above are causing a space to be printed after the image, and this is showing up as a partial border on your image. It wouldn’t hurt to put { border: none } in your CSS.

Don’t leave a trailing semicolon before your closing posh bracket, either ….. IE doesn’t like it.

Dreamweaver Tutorials- Working with Div Tags; using float and background image