In the following example, the child divs one
and two
have the font-style
of the parent but do not have the float
style. Is there a list of which styles should cascade and which will not?
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body > div {
float: left; /* not inherited by child div */
font-style: italic; /* is inherited by child div */
}
body > div > div {
/*float: left;*/ /* uncommenting this have let the child div have the correct style */
}
</style>
</head>
<body>
<div>
parent
<div>
one
</div>
<div>
two
</div>
</div>
</body>
</html>