Forum Moderators: open

Message Too Old, No Replies

alternative for bordercolorlight and bordercolordark

         

djd4n

9:56 am on Apr 26, 2005 (gmt 0)

10+ Year Member



Hi
i'm using the bordercolorlight and bordercolordark attributes to draw a box outline in a table by setting them to the same colour. you can see this on:
<SNIP>
It is on the menu buttons home, news etc. This obviously only works in IE and not in anything else. How can I get it to appear in Firefox etc the same as in IE, basically making it XHTML compatible?

thanks

dan.

[edited by: BlobFisk at 10:00 am (utc) on April 26, 2005]
[edit reason] No URLs please! See TOS [webmasterworld.com] [/edit]

birdbrain

1:57 pm on Apr 26, 2005 (gmt 0)



Hi there djd4n,

and a warm welcome to these forums. ;)

for cross browser compatiblity use CSS, like this...

<style type="text/css">
<!--
#tableOne {
width:300px;
height:200px;
border-style:ridge;
border-width:8px;
border-top-color:#f99;
border-left-color:#f99;
border-right-color:#f00;
border-bottom-color:#f00;
}
#tableOne td {
border:1px solid #999;
}
//-->
</style>

<table id="tableOne"><tr>
<td>&#160;</td>
</tr></table>

If you are unfamiliar with CSS check out...

w3schools [w3schools.com]

...and in particular...

borders [w3schools.com]

birdbrain