HTML CSS examples for CSS Property:border-radius
Border-radius and translate3d
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .scroller{<!--from w w w . j av a 2 s . co m--> width: 300px; height: 500px; border: 3px solid red; border-radius: 30px; overflow: hidden; } .scroller-content{ width: 300px; height: 300px; background: green; -webkit-transform: translate(0, -8px); } </style> </head> <body> <div class="scroller"> <div class="scroller-content"></div> </div> </body> </html>