table border colors not showing??

Discussion of general topics about Mozilla Firefox
Post Reply
zerwitt14
Posts: 2
Joined: July 20th, 2005, 8:17 am

table border colors not showing??

Post by zerwitt14 »

I am a web developer and I am creating a site and am using tables with borders and the color I am setting is not showing up in firefox? any thoughts? does firefox not support the bordercolor tag?

The client is not happy please help!!

Z
Unarmed
Posts: 4941
Joined: July 31st, 2003, 1:26 pm

Post by Unarmed »

No, the <code>bordercolor</code> attribute only exists in Internet Explorer's grand vision of what HTML is supposed to be. The CSS equivalent, on the other hand, works on just about every browser.

For a single 1-pixel red border around the outside of a table, you'd use

Code: Select all

<style type="text/css">
table { border: 1px solid red; }
</style>

or

Code: Select all

<table style="border:1px solid red;">


For the same border, but around each individual cell, you'd use

Code: Select all

<style type="text/css">
table { border-collapse: collapse; }
td { border: 1px solid red; }
</style>
zerwitt14
Posts: 2
Joined: July 20th, 2005, 8:17 am

thanks

Post by zerwitt14 »

Unarmed, thanks! you just saved me a lot of time and trouble!
Post Reply