Answers for "how to stick a text to a div in css"

1

how to stick a text to a div in css

<!-- CSS Style -->

<style>
  .stick{
    width: 100px;
    height: 100px;
    position: absolute;
    background-color: blue;
    
  }
  .stick::after{
    content:'A Stuck Word';
    position: absolute;
    top: 110px;
  }
</style>
<!-- CSS Style -->


<div class="stick"></div>
Posted by: Guest on June-06-2020

Code answers related to "how to stick a text to a div in css"

Browse Popular Code Answers by Language