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
table border colors not showing??
-
- Posts: 4941
- Joined: July 31st, 2003, 1:26 pm
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
or
For the same border, but around each individual cell, you'd use
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>