Element with border-radius and overflow hidden - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-radius

Description

Element with border-radius and overflow hidden

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Overflow and Border Radius</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

.outer {<!-- w  w w .  j  a v  a2 s .  c om-->
   width: 200px;
   height: 200px;
   border-radius: 10px;
   border: 1px solid black;
   position: absolute;
   overflow: hidden;
   z-index: 1;
}
.inner {
   width: 200px;
   height: 200px;
   position: relative;
   overflow: scroll;
   background-color: lightblue;
}
.inner2 {
   width: 200px;
   height: 400px;
   background-color: lightgray;
}
.inner3 {
   width: 200px;
   height: 100px;
   position: absolute;
   background-color: blue;
}


      </style> 
 </head> 
 <body> 
  <div class="outer"> 
   <div class="inner"> 
    <div class="inner2"> 
     <div class="inner3"></div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials