The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › understanding [class*="content"]:before
In wordpress TwentyThirteen theme i found this styling
It is used to clear the float
but i don’t understand this type of styling does any one know how it works.
what’s that [ ] signifies plz expalin the syntax
You can use the :before and :after selectors to append additional content to your existing content via CSS.
Something such as:
Would append a “» ” before every paragraph. You could also use it to add things such as icons before or after some content, for example.