HighDots Forums  

Table border color in Mozilla Firefox

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Table border color in Mozilla Firefox in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mr. Clean
 
Posts: n/a

Default Table border color in Mozilla Firefox - 07-20-2004 , 05:23 PM






Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.

Here's what I do that works in IE:

<table border="1" cellpadding="2" cellspacing="0" width="380"
bordercolor="#CB0017">

Now, if I add this to my CSS:

TABLE.standings { border: 1px solid #CB0017; }

and rewrite my HTML like this:

<table border="o" cellpadding="2" cellspacing="0" width="380"
class="standings">

There are no lines between the cells only around the edge of the table.

How would I make the CSS mimic usage of the bordercolor attribute in IE?

Reply With Quote
  #2  
Old   
Stanimir Stamenkov
 
Posts: n/a

Default Re: Table border color in Mozilla Firefox - 07-20-2004 , 05:39 PM






/Mr. Clean/:

Quote:
How would I make the CSS mimic usage of the bordercolor attribute in IE?
Define border for the table cells, too:

table.standings td { border: 1px solid #CB0017 }

--
Stanimir


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Table border color in Mozilla Firefox - 07-20-2004 , 06:05 PM



"Mr. Clean" <mrclean@p&g.com> wrote:

Quote:
Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.
There's no such attribute in HTML.

Quote:
Here's what I do that works in IE:

table border="1" cellpadding="2" cellspacing="0" width="380"
bordercolor="#CB0017"
Yeah, IE supports a lot of stuff that isn't HTML.

Quote:
Now, if I add this to my CSS:

TABLE.standings { border: 1px solid #CB0017; }

and rewrite my HTML like this:

table border="o" cellpadding="2" cellspacing="0" width="380"
class="standings"
Did you mean to set your border to 'o', or did you mean '0'?

Quote:
There are no lines between the cells only around the edge of the table.
Of course. Your stylesheet sets a border around the table not around
the cells.

Quote:
How would I make the CSS mimic usage of the bordercolor attribute in IE?
TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }

You may need to play with border-collapse as well. Check the CSS spec
for details.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
Mr. Clean
 
Posts: n/a

Default Re: Table border color in Mozilla Firefox - 07-21-2004 , 08:28 AM



Steve Pugh wrote:
Quote:
"Mr. Clean" <mrclean@p&g.com> wrote:


Apparently Mozilla/Firefox doesn't support the bordercolor attribute of
the table tag.


There's no such attribute in HTML.

In the IE4 DOM it is there, I know it isn't in the HTML spec.


Reply With Quote
  #5  
Old   
Mr. Clean
 
Posts: n/a

Default Re: Table border color in Mozilla Firefox - 07-21-2004 , 08:42 AM



Quote:
TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }

Now, I can't get TD.OpenDate to work. see the page:
http://www.austinmetrobaseball.com/schedule.php

CSS here:
http://www.austinmetrobaseball.com/ambl.css


Reply With Quote
  #6  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Table border color in Mozilla Firefox - 07-21-2004 , 01:49 PM



"Mr. Clean" <mrclean@p&g.com> wrote:
Quote:
Someone wrote:

TABLE.standings td, TABLE.standings th { border: 1px solid #CB0017; }

Now, I can't get TD.OpenDate to work. see the page:
http://www.austinmetrobaseball.com/schedule.php

CSS here:
http://www.austinmetrobaseball.com/ambl.css
TABLE.standings td {} is more specific than TD.OpenDate {} and hence
takes precedence. Make the second selector more specific: e.g.
TABLE.standings TD.OpenDate {} and it will be applied.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.