nstrudwick Posted January 18, 2017 Share Posted January 18, 2017 Apologies for asking what must be a naive question, but the effect this is having is actually quite important to me. The second line of w3.css reads html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit} I get everything except the * after the first } "-box}* ". No-where can I work out what this is supposed to do. The first element styled is html, the second and third are before and after of everything *, but what is that first * doing please? Thanks in advance. Link to comment Share on other sites More sharing options...
Ingolme Posted January 18, 2017 Share Posted January 18, 2017 The asterisk selects all elements, the comma is used to apply multiple selectors to the same set of rules. When properly indented the code should look like this: html { box-sizing:border-box } *, *:before, *:after { box-sizing:inherit } 1 Link to comment Share on other sites More sharing options...
nstrudwick Posted January 19, 2017 Author Share Posted January 19, 2017 Thanks. I get that--I just assumed that a space was needed for it to be parsed properly as I'd always found elsewhere that not spacing out discrete elements tend to produce no result... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now