By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,090 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

css, tables, and 'inherit'

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
~ Ok, I've got some tables, and a style sheet that contains stuff to
format the table. The problem I'm having is, it appears that using the
'iherit' keyword for td, tr, is not supported?

Attached is the stylesheet in question. Let me preface this by saying, I
have { border-collapse: collapse } set as the border rendering mode.
Originally, I had explicitely set { border: thin solid #666666; } for
col, tr, td. I decided as an experiment to change it to { border:
inherit inherit inherit } for those elements, in order to try to force
them to inherit the value from the table element (since td are always
inside of tr, which are always inside a table element, which I've
provided a style for). I did this, because, by default, border
information is not inherited, as per the specs.

I'd like to be able to setup my stylesheets such that I can change the
border-color on the table, and have it automatically inherit down to the
~ column/row/cell elements. This would make my tables *much* more
maintainable. But it doesn't seem to be working.

Is it possible to do this? Am I just doing it wrong?

Jeff SChmidt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAbdBy/djDnfAeGysRAljAAJ4kWcmloTXabzITE8FBGhH5z5SoJgCfeHL l
h3IJ/bBARRTRpJ61HFfmJFk=
=x8nL
-----END PGP SIGNATURE-----

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 02 Apr 2004 20:43:18 GMT, Jeff Schmidt
<js****@weldingengineering.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You shouldn't smoke hash.
Hello,
~ Ok, I've got some tables, and a style sheet that contains stuff to
format the table. The problem I'm having is, it appears that using the
'iherit' keyword for td, tr, is not supported?

Attached is the stylesheet in question.
Please don't send files to a non-binary ng. Put it up on a server instead.
Let me preface this by saying, I
have { border-collapse: collapse } set as the border rendering mode.
Originally, I had explicitely set { border: thin solid #666666; } for
col, tr, td. I decided as an experiment to change it to { border:
inherit inherit inherit } for those elements, in order to try to force
them to inherit the value from the table element (since td are always
inside of tr, which are always inside a table element, which I've
provided a style for). I did this, because, by default, border
information is not inherited, as per the specs.

I'd like to be able to setup my stylesheets such that I can change the
border-color on the table, and have it automatically inherit down to the
~ column/row/cell elements. This would make my tables *much* more
maintainable. But it doesn't seem to be working.

Is it possible to do this? Am I just doing it wrong?


You said it yourself - borders aren't inherited. So colors, sizes and
styles of borders won't be inherited even if you state "inherit".

Also, nothing is inherited from a column style to a cell style, because
simply put cells are descendants of rows, not columns.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.