Answers for "css tricks functions"

CSS
-2

css tricks

/* Add an arrow for your tooltip*/
.my-tooltip{
  position: relative;
}
.my-tooltip::before{
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 8px;
  border-color: #f00 transparent transparent transparent;
  /* use top, left, bottom and right to position it where it should be*/
}
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language