The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS understanding [class*="content"]:before

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #145902

    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

    Tom Houy

    You can use the :before and :after selectors to append additional content to your existing content via CSS.

    Something such as:

    content:”» “;

    Would append a “» ” before every paragraph. You could also use it to add things such as icons before or after some content, for example.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.