tags:

views:

179

answers:

3

Hi all,

I have a css class (given below). The border element is working fine in firefox, it creates a 6px white border around the image. But in IE(6) it is not creating any border ie only displays the image. Pls help me out I need to figure it out quickly.

.pimage2 {
    background:url(../images/img2.gif) no-repeat;
    width: 469px;
    height:203px; 
    border:7px solid #ffffff; 

}

Thanks, Aditya

A: 

maybe with black color: ?

border:7px solid #000;
Asinox
Are you assuming the OP put a white border on white background?
annakata
Even black color frame is not appearing in IE, though its appearing in firefox.
Aditya R
+2  A: 

maybe because you set the table border to 0 eg:

<table border="0" cellpadding="0" cellspacing=0">
<tr>
<td></td>
</tr>
</table>

even though the table border should not have anything to do with the cell border.. i think ie is realy bad at css and maybe this is the problem.. if not you might want to try this :

<td style="border: 7px solid #ffffff"></td>
DanTdr
Even this - <td style="border: 7px solid #ffffff"></td> does not create a frame in IE.
Aditya R
+1  A: 

According to your comment, you're using the CSS on a table cell like this:

<td class="pimage2"></td>

But IE6 won't see this and you won't be able to get the border to show.

To get the border around it, just add a non-breaking space entity in the table cell. Like so:

<td class="pimage2">&‎nbsp;</td>
random
A belated thank you! ;) that had solved my problem.
Aditya R