Forum Moderators: not2easy

Message Too Old, No Replies

Getting a border on right and left sides not working in IE

help please!

         

Clark

4:30 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using code like this and it's showing up in firefox but blank in I.E.

<tr bgcolor="#738FBF">
<td class="tinyfont" colspan="4" style="border: thin #000000; border-style: solid; border-color:#000000; border-width: 0px 1px 0px 1px; height:5px;" align="center"></td></tr>

Is there a safe way to get right and left border showing up?

coho75

4:58 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



This seems to work in my version of IE:

<tr bgcolor="#738FBF">
<td class="tinyfont" colspan="4" style="border-right:1px solid #000;border-left:1px solid #000; height:5px; text-align:center">Hello there</td></tr>

Clark

4:59 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks. That works for Firefox too I presume?

coho75

5:02 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



Don't have Firefox available to me at work, but there is no reason why it shouldn't.

Clark

5:17 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Very weird but it's not working for me on I.E.

coho75

5:19 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



Which version of IE are using to test the page?

Clark

5:23 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



6.028

But I tested some code on w3schools and it does work. Maybe I'm overriding the property somewhere in the code somehow? I thought the style set closest to the object is the overriding one?

Clark

5:25 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Fixed it.

The <td> was empty but the height:5px increased the height in firefox and appeared perfect in IE but the borders didn't show.

&nbsp; put the borders back. But the height is too high sigh.

This whole css is voodoo.

doodlebee

3:47 am on Mar 16, 2006 (gmt 0)

10+ Year Member



Just out of curisoty - do you have more code we could see? There probably is something else overriding it - just because it's closest doesn't mean you've redefined everything that was already defined.

(and just for defense - CSS is not "voodoo"!)

But if you could post your HTML and CSS, we could get a better idea of what the issue is and how to fix it. :)