Skip to content

CSS Miscellaneous

Links: 116 CSS Index


Pseudo Classes

  • We can use pseudo classes to change the behaviour of the element on click, hover etc.

  • Example of pseudo classes with pseudo elements

    • On hover add an arrow before the content of the anchor tag.
      ul a:hover::before {
          content: "⇨ ";
          color: red;
          margin-right: 20px;
      }
      

Last updated: 2023-03-20