Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Table border color in Mozilla Firefox
 

Mr. Clean




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 12:18 AM  
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?


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Stanimir Stamenkov




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 03:50 AM  
/Mr. Clean/:

> 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


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Steve Pugh




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 03:50 AM  
"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.

>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.

>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'?

>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.

>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@pugh.net>        <http://steve.pugh.net/>


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Brian




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 04:14 AM  
Steve Pugh wrote:
> "Mr. Clean" wrote:
> 
>
> There's no such attribute in HTML.

> IE supports a lot of stuff that isn't HTML.

Yeah, but they make up for by ignoring a lot of stuff that is in it. ;-)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Mr. Clean




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 05:17 PM  
Steve Pugh wrote:
> "Mr. Clean" <mrclean@p&g.com> wrote:
>
> 
>
>
> There's no such attribute in HTML.
>

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


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Mr. Clean




quote this post edit post

IP Loged report this post

Old Post  07-21-04 - 05:17 PM  
>
> 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


Post Follow-Up to this message ]
Re: Table border color in Mozilla Firefox
 

Steve Pugh




quote this post edit post

IP Loged report this post

Old Post  07-22-04 - 12:17 AM  
"Mr. Clean" <mrclean@p&g.com> wrote:
> Someone wrote: 
>
>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 he
nce
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@pugh.net>        <http://steve.pugh.net/>


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 04:34 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top