
Originally Posted by
dorichcss
For instance could I write something like:
".someclassname h1{....}"
This would mean that you have a parent element with a class name of "someclassname" which contains an element with the "h1" tag. The whole CSS rule would select the very heading within an element of the "someclassname" class name.
Possible scenarios:
HTML Code:
<div class="someclassname">
<h1>My Heading</h1>
</div>
HTML Code:
<body class="someclassname">
<h1>Main Heading</h1>
...
</body>
Your CSS code would select the <h1> element in each of the above scenarios in order to define some style rules for it.
Hope this helps.
Felix Riesterer.
Bookmarks