Re: [css-d] Table and inheritance?

2006-05-10 Thread Bill Brown
> That wont work I can't put border-style: none; That would get 
> rid of the thing orange border I want to create!

It does work. I think David means that you should do this:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>


Untitled

/*  */




  

  

  
TD nested inside thinOrangeBorder table with no style.
  

  


  

  
TD nested inside thinOrangeBorder table with no style.
  

  

  



  

TD outside thinOrangeBorder table with no style.

  






___
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Table and inheritance?

2006-05-10 Thread Anastasios Angelidis
That wont work I can't put border-style: none; That would get rid of the 
thing orange border I want to create!

Rowspans? I can't. There is one main index template and the rest are all 
injected. I guess I could go correct the 50 other templates :P

Or I can just do it the plain old ugly way, by wrapping tables around 
table without css...


Gilles DEMARTY wrote:

>Hi anastasios
>
>  
>
>>The problem is when I add another table with that table it inherits the
>>css regardless if the class is set or not and I do not want it to. What
>>is the issue?
>>
>>
>
>a workaround shoud be to add inner table border canceling:
>/* a th of a table inside a table */
>table.thinOrangeBorder table th
>{
>   border-style: none;
>}
>
>/* a td of a table inside a table */
>table.thinOrangeBorder table td
>{
>   border-style: none;
>}
>
>  
>
>>So what you are saying is that I'm probably missing a closing tag
>>somewhere on one of the tables?
>>
>>
>I don't think so, i think what david is saying is that having a table
>inside a table can be avoided by using colspans and rowspans.
>
>my $.02
>
>Gilles
>__
>css-discuss [EMAIL PROTECTED]
>http://www.css-discuss.org/mailman/listinfo/css-d
>IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
>List wiki/FAQ -- http://css-discuss.incutio.com/
>Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
>  
>

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Table and inheritance?

2006-05-10 Thread Gilles DEMARTY
Hi anastasios

> The problem is when I add another table with that table it inherits the
> css regardless if the class is set or not and I do not want it to. What
> is the issue?

a workaround shoud be to add inner table border canceling:
/* a th of a table inside a table */
table.thinOrangeBorder table th
{
   border-style: none;
}

/* a td of a table inside a table */
table.thinOrangeBorder table td
{
   border-style: none;
}

> So what you are saying is that I'm probably missing a closing tag
> somewhere on one of the tables?
I don't think so, i think what david is saying is that having a table
inside a table can be avoided by using colspans and rowspans.

my $.02

Gilles
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Table and inheritance?

2006-05-10 Thread Anastasios Angelidis
So what you are saying is that I'm probably missing a closing tag 
somewhere on one of the tables?

That sux! it's a 3rd party product that uses smarty templates! I guess i 
have to figure out where the culprit is...

Anastasios Angelidis wrote:

>I have my classes defined as below...
>
>I then decorate my table like so 
>
>The problem is when I add another table with that table it inherits the 
>css regardless if the class is set or not and I do not want it to. What 
>is the issue?
>
>Thanks
>
>table.thinOrangeBorder
>{
>border-width: 0px;
>border-spacing: 2px;
>background-color: white;
>}
>
>table.thinOrangeBorder th
>{
>border-width: 1px;
>padding: 0px;
>border-style: solid;
>border-color: #F26F31;
>background-color: white;
>}
>
>table.thinOrangeBorder td
>{
>border-width: 1px;
>padding: 0px;
>border-style: solid;
>border-color: #F26F31;
>background-color: white;
>}
>__
>css-discuss [EMAIL PROTECTED]
>http://www.css-discuss.org/mailman/listinfo/css-d
>IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
>List wiki/FAQ -- http://css-discuss.incutio.com/
>Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
>  
>

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Table and inheritance?

2006-05-10 Thread David Dorward
On 10/05/06, Anastasios Angelidis <[EMAIL PROTECTED]> wrote:
> The problem is when I add another table with that table it inherits the
> css regardless if the class is set or not and I do not want it to. What
> is the issue?

> table.thinOrangeBorder th

That says "A th element that is a descendent of a table of that
class".  When you nest tables, the descendents of the inner table
don't stop being descendents of the outer table.

That said, if you are nesting tables then it is almost a certainty
that your markup is incorrect anyway, so fixing that is probably the
way to go.

--
David Dorward 
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/