What does the following selection do ? is it selecting everything under .flipper class ? i literally mean everything under .flipper class ??
.flipper>* { position: absolute; width: 100%; height: 100%; }
It says
Any child of .flipper
One more question
The * selector is said to be best avoided as its very taxing on the browser , so is that kind of selection bad practice ??
Hi gautamz07 It's very
Hi gautamz07
It's very general, targets anything and everything.
In your example it is only used in targeting the direct children of .flipper so shouldn't be an issue.
Mostly, it's stupid
Seldom is it necessary. Most properties that you'd want to give to the child elements are heritable. Those that are not should be considered item by item.
If you would give us a real world example of its use, we could be more helpful. Frankly, my limited imagination is unable to conjure up a case where I'd even consider that selector construct.
In general, the use of the * selector indicates someone who doesn't quite get it. There was a time when it was helpful because of IE's stupidity. There is no longer a sane reason to use outdated hacks for IE. Those who do, probably haven't a clue as to its original purpose, and simply paste it into the css out of ignorance.
cheers,
gary
Thank you
Well thanks gary and tony