MozillaZine

table border colors not showing??

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

Post Posted July 20th, 2005, 8:21 am

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 Posted July 20th, 2005, 8:44 am

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

Post Posted July 20th, 2005, 8:50 am

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

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 4 guests