This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2005 > Re: can (text) color by applied to <tr> or only to <td>?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: can (text) color by applied to <tr> or only to <td>?
Adrian Stock

2005-03-05, 11:17 pm

Kramerica Industries wrote:

> Try
>
> .top_row td{color: #ffffff}
>
>

#top_row td {
color: #ffffff;
}

Yes, Kramerica, thanks. That did the trick.

Now I am still interested in the theory behind it.

Is the principle that text never resides in a row but only in a cell
(which is in a row), and that therefore 'color' cannot be assigned to a
row but only to a cell, as you did?

Or is there some reason behind my experience?

Thanks to whosever comments.

Adrian



>
>
> "Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
> news:d0djmf$3pi$1@forums.macromedia.com...
>
>
>
>

Kramerica Industries

2005-03-05, 11:17 pm

Try

..top_row td{color: #ffffff}




"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0djmf$3pi$1@forums.macromedia.com...
>I want to apply a text colour to all cells in a row.
>
> I tried:
> color:#ffffff;
> in the external stylesheet
>
> which did not work.
>
>
>
>
> I tried the same as in-line style:
> <tr style="color:#ffffff;">
>
> which did not work.
>
> I tried it for an individual cell in the same row:
> <td style="color:#ffffff;">
>
> which did work.
>
> Is there a css rule which says that text color has to applied to cells
> rather than rows? Or is there something else interfering in my case?
>
> The page in question is at:
>
> http://www.tudo.co.uk/testing/brook...lubs/clubs.html
>
> The style sheet is in:
>
> http://www.tudo.co.uk/testing/brook.../brookfield.css
> and
> http://www.tudo.co.uk/testing/brook.../brookfield.txt
>
> The row in which I want to make the text white is id="top_row"
>
> Thanks for your help.
>
> Adrian
>
>
>



Murray *TMM*

2005-03-06, 6:28 pm

If you want to support NN4x, you wouldn't use underscores in your class
names, by the way.

The style rule says to apply that style to any td within any container
classed "top_row". Apparently the color style is not inherited from row
into cell otherwise. Your logic sounds as good as any.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0dkas$4fs$1@forums.macromedia.com...[color=darkred]
> Kramerica Industries wrote:
>
> #top_row td {
> color: #ffffff;
> }
> Yes, Kramerica, thanks. That did the trick.
>
> Now I am still interested in the theory behind it.
>
> Is the principle that text never resides in a row but only in a cell
> (which is in a row), and that therefore 'color' cannot be assigned to a
> row but only to a cell, as you did?
>
> Or is there some reason behind my experience?
>
> Thanks to whosever comments.
>
> Adrian
>
>
>

Adrian Stock

2005-03-06, 6:31 pm

Murray *TMM* wrote:

> If you want to support NN4x, you wouldn't use underscores in your class
> names, by the way.
>
> The style rule says to apply that style to any td within any container
> classed "top_row". Apparently the color style is not inherited from row
> into cell otherwise. Your logic sounds as good as any.
>


Hi, Murray,

Thanks for coming in. the 'color' and <td> matter is settled for me.
I'll remember that.

but shit ... underscore.

I am trying to upgrade all my websites to conform to xhtml standards.

I believe (am I right there?) that this is a step up in stringency and
cannot do any harm.

I understand that, i.a., in xhtml I must

- have the appropriate doctype declaration

- have all tags and tag attributes in lowercase only (hence I am
converting all topRow classes into top_row, and the like.

- use quotes for all tag attributes

- close all tags (even empty tags, such as <br>

I will find out what else I have to do to achieve that standard.

If that means (I think) that I cannot cater for NN4x, so be it.

I do not want to forgo both the underscore and the use of caps. Leave
me at least one vice, for chrissake, even though two would be better.

What do you think?

Adrian

Murray *TMM*

2005-03-06, 6:31 pm

> I am trying to upgrade all my websites to conform to xhtml standards.

> I believe (am I right there?) that this is a step up in stringency and
> cannot do any harm.


If your reason for this is just to achieve the standard then I would not
recommend you do it. Stick with HTML4.01 Strict. You will have the same
stringency without some of the minor problems you might have with XHTML.

> - have all tags and tag attributes in lowercase only (hence I am
> converting all topRow classes into top_row, and the like.


But this is not an attribute, it's an attribute VALUE. There is no such
stringency there.

Geddit?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0fk4k$21q$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
>
> Hi, Murray,
>
> Thanks for coming in. the 'color' and <td> matter is settled for me. I'll
> remember that.
>
> but shit ... underscore.
>
> I am trying to upgrade all my websites to conform to xhtml standards.
>
> I believe (am I right there?) that this is a step up in stringency and
> cannot do any harm.
>
> I understand that, i.a., in xhtml I must
>
> - have the appropriate doctype declaration
>
> - have all tags and tag attributes in lowercase only (hence I am
> converting all topRow classes into top_row, and the like.
>
> - use quotes for all tag attributes
>
> - close all tags (even empty tags, such as <br>
>
> I will find out what else I have to do to achieve that standard.
>
> If that means (I think) that I cannot cater for NN4x, so be it.
>
> I do not want to forgo both the underscore and the use of caps. Leave me
> at least one vice, for chrissake, even though two would be better.
>
> What do you think?
>
> Adrian
>



Michael Fesser

2005-03-06, 6:31 pm

.oO(Murray *TMM*)

>The style rule says to apply that style to any td within any container
>classed "top_row". Apparently the color style is not inherited from row
>into cell otherwise.


The 'color' property is inherited. Applying it to a row works here.

Micha
Murray *TMM*

2005-03-06, 6:31 pm

<shrug> Then I am at a loss to explain it.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Michael Fesser" <netizen@gmx.net> wrote in message
news:vulm219aic7hdd0ibis6kdjg8l73b751j7@4ax.com...
> .oO(Murray *TMM*)
>
>
> The 'color' property is inherited. Applying it to a row works here.
>
> Micha



Adrian Stock

2005-03-06, 11:16 pm

Murray *TMM* wrote:
>
>
>
>
> If your reason for this is just to achieve the standard then I would not
> recommend you do it. Stick with HTML4.01 Strict. You will have the same
> stringency without some of the minor problems you might have with XHTML.
>
>
>
>
> But this is not an attribute, it's an attribute VALUE. There is no such
> stringency there.
>
> Geddit?
>


OK, Murray,

So I will upgrade from my present 'loose' to 'strict'. I am not forced
to do this by an outside agency, just want to get my standards as high
as I can. So 'strict' it is, as you recommend.

You say: "geddit?" Hope so. Did not pay attention to the difference
between attribute and its value in this context. So you are saying that
topRow is all right as a class - both in html 4.01 strict and in xhtml?

Please confirm, just to make absolutely sure that i 'geddit'.

Tx and good night (Uk night)

Adrian
Murray *TMM*

2005-03-06, 11:16 pm

Yes - you geddit! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0g794$odq$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
> OK, Murray,
>
> So I will upgrade from my present 'loose' to 'strict'. I am not forced to
> do this by an outside agency, just want to get my standards as high as I
> can. So 'strict' it is, as you recommend.
>
> You say: "geddit?" Hope so. Did not pay attention to the difference
> between attribute and its value in this context. So you are saying that
> topRow is all right as a class - both in html 4.01 strict and in xhtml?
>
> Please confirm, just to make absolutely sure that i 'geddit'.
>
> Tx and good night (Uk night)
>
> Adrian



Murray *TMM*

2005-03-13, 4:15 am

If you want to support NN4x, you wouldn't use underscores in your class
names, by the way.

The style rule says to apply that style to any td within any container
classed "top_row". Apparently the color style is not inherited from row
into cell otherwise. Your logic sounds as good as any.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0dkas$4fs$1@forums.macromedia.com...[color=darkred]
> Kramerica Industries wrote:
>
> #top_row td {
> color: #ffffff;
> }
> Yes, Kramerica, thanks. That did the trick.
>
> Now I am still interested in the theory behind it.
>
> Is the principle that text never resides in a row but only in a cell
> (which is in a row), and that therefore 'color' cannot be assigned to a
> row but only to a cell, as you did?
>
> Or is there some reason behind my experience?
>
> Thanks to whosever comments.
>
> Adrian
>
>
>

Murray *TMM*

2005-03-13, 4:20 am

> I am trying to upgrade all my websites to conform to xhtml standards.

> I believe (am I right there?) that this is a step up in stringency and
> cannot do any harm.


If your reason for this is just to achieve the standard then I would not
recommend you do it. Stick with HTML4.01 Strict. You will have the same
stringency without some of the minor problems you might have with XHTML.

> - have all tags and tag attributes in lowercase only (hence I am
> converting all topRow classes into top_row, and the like.


But this is not an attribute, it's an attribute VALUE. There is no such
stringency there.

Geddit?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0fk4k$21q$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
>
> Hi, Murray,
>
> Thanks for coming in. the 'color' and <td> matter is settled for me. I'll
> remember that.
>
> but shit ... underscore.
>
> I am trying to upgrade all my websites to conform to xhtml standards.
>
> I believe (am I right there?) that this is a step up in stringency and
> cannot do any harm.
>
> I understand that, i.a., in xhtml I must
>
> - have the appropriate doctype declaration
>
> - have all tags and tag attributes in lowercase only (hence I am
> converting all topRow classes into top_row, and the like.
>
> - use quotes for all tag attributes
>
> - close all tags (even empty tags, such as <br>
>
> I will find out what else I have to do to achieve that standard.
>
> If that means (I think) that I cannot cater for NN4x, so be it.
>
> I do not want to forgo both the underscore and the use of caps. Leave me
> at least one vice, for chrissake, even though two would be better.
>
> What do you think?
>
> Adrian
>



Adrian Stock

2005-03-13, 4:20 am

Murray *TMM* wrote:

> If you want to support NN4x, you wouldn't use underscores in your class
> names, by the way.
>
> The style rule says to apply that style to any td within any container
> classed "top_row". Apparently the color style is not inherited from row
> into cell otherwise. Your logic sounds as good as any.
>


Hi, Murray,

Thanks for coming in. the 'color' and <td> matter is settled for me.
I'll remember that.

but shit ... underscore.

I am trying to upgrade all my websites to conform to xhtml standards.

I believe (am I right there?) that this is a step up in stringency and
cannot do any harm.

I understand that, i.a., in xhtml I must

- have the appropriate doctype declaration

- have all tags and tag attributes in lowercase only (hence I am
converting all topRow classes into top_row, and the like.

- use quotes for all tag attributes

- close all tags (even empty tags, such as <br>

I will find out what else I have to do to achieve that standard.

If that means (I think) that I cannot cater for NN4x, so be it.

I do not want to forgo both the underscore and the use of caps. Leave
me at least one vice, for chrissake, even though two would be better.

What do you think?

Adrian

Michael Fesser

2005-03-13, 4:20 am

.oO(Murray *TMM*)

>The style rule says to apply that style to any td within any container
>classed "top_row". Apparently the color style is not inherited from row
>into cell otherwise.


The 'color' property is inherited. Applying it to a row works here.

Micha
Murray *TMM*

2005-03-13, 4:20 am

<shrug> Then I am at a loss to explain it.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Michael Fesser" <netizen@gmx.net> wrote in message
news:vulm219aic7hdd0ibis6kdjg8l73b751j7@4ax.com...
> .oO(Murray *TMM*)
>
>
> The 'color' property is inherited. Applying it to a row works here.
>
> Micha



Adrian Stock

2005-03-13, 7:15 am

Murray *TMM* wrote:
>
>
>
>
> If your reason for this is just to achieve the standard then I would not
> recommend you do it. Stick with HTML4.01 Strict. You will have the same
> stringency without some of the minor problems you might have with XHTML.
>
>
>
>
> But this is not an attribute, it's an attribute VALUE. There is no such
> stringency there.
>
> Geddit?
>


OK, Murray,

So I will upgrade from my present 'loose' to 'strict'. I am not forced
to do this by an outside agency, just want to get my standards as high
as I can. So 'strict' it is, as you recommend.

You say: "geddit?" Hope so. Did not pay attention to the difference
between attribute and its value in this context. So you are saying that
topRow is all right as a class - both in html 4.01 strict and in xhtml?

Please confirm, just to make absolutely sure that i 'geddit'.

Tx and good night (Uk night)

Adrian
Murray *TMM*

2005-03-13, 7:15 am

Yes - you geddit! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Adrian Stock" <adrian.stock22@tudo.co.uk> wrote in message
news:d0g794$odq$1@forums.macromedia.com...
> Murray *TMM* wrote:
>
> OK, Murray,
>
> So I will upgrade from my present 'loose' to 'strict'. I am not forced to
> do this by an outside agency, just want to get my standards as high as I
> can. So 'strict' it is, as you recommend.
>
> You say: "geddit?" Hope so. Did not pay attention to the difference
> between attribute and its value in this context. So you are saying that
> topRow is all right as a class - both in html 4.01 strict and in xhtml?
>
> Please confirm, just to make absolutely sure that i 'geddit'.
>
> Tx and good night (Uk night)
>
> Adrian



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews