Video Tutorial_14
CSS Layout – Overflow:
<style
type="text/css">
.sobuj{
width: 900px;
height: 500px;
background: green;
margin: 50px auto;
overflow: hidden;
}
.white{
background: white;
width: 300px;
height: 300px;
border-radius: 50%;
margin:100px 110px;
overflow: hidden;
}
img {
width: 150px;
margin: 80px 80px;
display: block;
}
</style>
<div
class="sobuj">
<div class="white">
<img src="paris.jpg"
alt="Paris">
</div>
Border-radius:
<style
type="text/css">
.sobuj{
width:
900px;
height:
500px;
background:
green;
margin: 50px
auto;
overflow:
hidden;
position:
:relative;
}
.lal{
background:
white;
width:
300px;
height:
300px;
border-radius:
50%;
position: absolute;
bottom: 0;
right:0;
top:0;
left:0;
margin: 50px
auto;
}
img {
width: 150px;
margin: 80px 80px;
display:block;
position: absolute;
bottom: 0;
right:0;
top:0;
left:0;
margin: auto;
}
</style>
<div
class="sobuj">
<div class="lal">
<img
src="paris.jpg" alt="Paris">
</div>
Blog RSS Feed
Via E-mail
Twitter
Facebook