473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

css, tables, and 'inherit'

-----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
1 3214
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Christopher Benson-Manica | last post by:
Given table#main { border-collapse: collapse; border: black 1px solid; } , why does the main table have borders around the outside only? IOW, why won't the tr and td elements inherit the...
3
by: NickName | last post by:
Here's the situation, developers inherit a web app from someone, backend SQL db has about 120 user tables and the db is also being used by other apps. Developers don't have a list of user tables...
2
by: floyds | last post by:
do child tables inherit the indexes declared for a parent table? or do i need to redeclare the index on each child table? for example: create table fee ( fie text ); create index fee_index on...
8
by: ZRexRider | last post by:
Hi, I am working on an Access application where the author used SQL back end via linked tables. I wrote some general functions that would execute pass through queries and was going to call...
12
by: cjobes | last post by:
Hi all, I'm trying to create a dataset as a component to make it accessable from all forms. I have used that following code so far in the component designer: Inherits...
1
by: Christoph Graf | last post by:
Hi everybody! As far as I have seen you can inherit from a table and get its columns. Is there a possibility to also inherit a tables triggers? When I simply derive a table from another I...
5
by: Giggle Girl | last post by:
Is there a way to prevent properties (specifically, height and background color) from being "inherited" by nested tables? Something similar (but sort of opposite to) !important, like...
32
by: Simon Dean | last post by:
Duh... Not another one... Hopefully simple though, I hate the way *I* (and it might be a CSS trait) can't intermix fixed width divisional elements with a variable auto expanding div??? The...
15
by: Peter | last post by:
I have the following web page and I am trying to have the Field lables NOT to wrap. It looks fine in a designer but when I run the program in a browser the lables that have a space wrap. How do I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.