is this a legitimate use of * selector, and if so are there references to how browsers support this? it seems to work in all browsers I have test, but I haven’t used older ones or IE
body * {
float: left;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes it is! The asterisk is a wildcard, it will select all elements within that DOM element you set it to.
For example, if I you want to apply an attribute to your whole site:
Or as you did it with a special DOM element!
You could also use something like:
Which is a bit difficult… like a recursion.