This raised another question that was asked here , but I consider it something that probably has a “best practice” approach.
When developing a website, the developer most likely collects a set of common styles for all elements of the website. (Standard fonts for text in Divs / Spans / H1 / H2s)
In the case of tables, they can also define default borders and alignments, for example ...
Table { border: dashed 1px #333333; padding: 2px; }
However, if you have a table inside the table (from the RSolberg example, AJAX calendar in the DataGrid), then both your parent and nested tables both inherit these styles. (Assume why they are called Cascading)
My question is that the best practice of applying styles to most elements that do not contain inherited elements also inherits them.
If you just provide an override that overrides any style you apply.
eg.
Table { border: dashed 1px #333333; padding: 2px; } Table Table { border: solid 0px #000000; padding: 0px; }
html css styles
Eoin campbell
source share