Skip to content

Instantly share code, notes, and snippets.

View sophialittlejohn's full-sized avatar

Sophia sophialittlejohn

View GitHub Profile
@sophialittlejohn
sophialittlejohn / fontend-development.md
Last active April 11, 2020 15:51
Learning Frontend Web Development

11.04.20 ::before and ::after pseudo elements

Use display: inline-block to make sure they're visible.

To place an icon in an input field, it can be set as the background-image.

.icon::after {
  background-image: url(../../assets/chevron-down.svg);
  content: "";