HTML CSS examples for CSS Layout:Box
Round box corners from inside
<html> <head> <title>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mor</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .round {<!--from www . j av a 2 s .com--> background:radial-gradient(circle at 0 100%, Chartreuse 15px, yellow 16px), radial-gradient(circle at 100% 100%, rgba(205,0,0,0) 15px, blue 16px), radial-gradient(circle at 100% 0, rgba(205,0,0,0) 15px, pink 16px), radial-gradient(circle at 0 0, rgba(205,0,0,0) 15px, OrangeRed 16px); background-position:bottom left, bottom right, top right, top left; background-size:51% 51%; background-repeat:no-repeat; padding:15px; } </style> </head> <body> <div class="round"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tort </div> </body> </html>