HTML CSS examples for CSS Widget:Arrow
Add arrow to div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div.my{<!--from w w w . j a v a 2 s. c o m--> padding: 7px 10px 0 4px; color: #fff; background-color: #DA362A; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; width: 150px; margin-left: 5px; } div.my-arrow{ border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right:10px solid #DA362A; float: left; height: 1px; margin-top: 3px; } </style> </head> <body> <div class="my-arrow"></div> <div class="my"> This field is required. </div> </body> </html>