HTML CSS examples for CSS Widget:Border
Add internal border on div within the padding
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div#border { padding:11px; box-shadow:inset 0 0 0 10px Chartreuse,inset 0 0 0 11px black; background-color:yellow; } </style> <!-- w ww. ja v a 2 s.c o m--> </head> <body> <div id="border"> some content </div> </body> </html>