HTML CSS examples for CSS Widget:Shape
Create circle shape with border and linear-gradient
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body<!-- w w w. j a va 2 s .c o m--> { font-size: 60px; } .icon { display: inline-block; border-radius: 50%; box-sizing: border-box; width: 2em; height: 2em; padding: .13em; background-color: #f8ba2b; background-image: linear-gradient(to right, yellow, #e99d29), linear-gradient(to right, #ffe77d, black); background-clip: content-box, padding-box; color: #fff; font-weight: bold; line-height: 1.8; text-align: center; border: 1px solid transparent; } </style> </head> <body> <span class="icon">42</span> </body> </html>