Сделать внутреннюю тень css, можно через свойство box-shadow: inset, пример:
HTML:
1 2 3 |
<body> <div class="square"></div> </body> |
CSS:
1 2 3 4 5 6 |
.square{ width: 100px; height: 100px; background-color: slateblue; box-shadow: inset 0px 0px 5px rgb(255, 255, 255); } |