Home » Questions » Unexperienced [ Ask a new question ]

Its move the shadow up

Its move the shadow up

Asked by: Guest | Views: 29
Total answers/comments: 1
Guest [Entry]

"ganito oh

You can do it all with CSS (no need for an image):

.hint {

   background:#F85B58;  

   display:inline-block;

   position:relative;

   color:white;

   padding:20px;

   box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.25);

}

.hint:before, .hint:after {

   content:"" "";

   display:block;

   position:absolute;

   top:50%;

   left:100%;

   width:0px;  

   height:0px;  

   overflow:hidden;

   margin-top:-10px;

   border:10px solid transparent;

   border-left-color:#F85B58;

}

.hint:before {

   margin-top:-8px;

   border-left-color:rgba(0, 0, 0, 0.25);

}"