Applying Tag Style Only Within DIV
Applying Tag Style Only Within DIV
(OP)
Is there some way to apply a general tag style only with the tags are within a DIV?
For example, a style like this:
needs to be applied only when the table is inside a pair of DIV tags but I'm not sure how parent/child relations are created for multiple elements. Any ideas?
For example, a style like this:
CODE --> CSS
table, td, tr { padding: 0; margin: 0; }
needs to be applied only when the table is inside a pair of DIV tags but I'm not sure how parent/child relations are created for multiple elements. Any ideas?
RE: Applying Tag Style Only Within DIV
The commas mean that the rules to ALL of the specified elements
Without commas will create an hiearchial structure (called "Combinators"
CODE --> CSS
the above will apply to a span in a paragraph in a division.
CODE --> HTML
Chris.
Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
RE: Applying Tag Style Only Within DIV