I have this code
*html #alertBox {
height:100px;
}
#modalContainer > #alertBox {
position:fixed;
}
is this supported by css, i
This is known as the star HTML hack and is useful in helping you pass certain CSS rules to older versions of Internet Explorer.
So the first example will only set the height of #alertBox
to 100 pixels if the browser that is used is susceptible to the star HTML hack:
The second example (#modalContainer > #alertBox
) will be applied to any element with an ID of alertBox
which is also a direct child of another element that has an ID of modalContainer
.
The markup would have to look something like this:
and not this:
Both of these rules are valid CSS.