At the request of users after reading the article Visualization of data on CSSoverflow property will help us to realize this.overflow property to determine the behavior of its contents. Possible overflow values are:visible (visible), hidden (invisible), scroll , auto .. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative. , left top, «» .overflowhidden, , . .a:hover:overflow: visible;.
, , .
, :ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}, . overflowhidden.topleft, «» . .ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
,z-index, . , .. , . , .
, , , . . , «» , , :
width1 – ,
width2 – , (ul#thumbs a)
padding – , , .
left :Value = (width1 - width2) / 2 + paddingtop , width height
,ul#thumbs a:hover:left: -1px; ( border..)
top: -1px;
.
. ( ) , relative. , left top, «» .overflowhidden, , . .a:hover:overflow: visible;.
, , .
, :ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}, . overflowhidden.topleft, «» . .ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
,z-index, . , .. , . , .
, , , . . , «» , , :
width1 – ,
width2 – , (ul#thumbs a)
padding – , , .
left :Value = (width1 - width2) / 2 + paddingtop , width height
,ul#thumbs a:hover:left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
. ( ) , relative . , left top, «» . overflow hidden , , . . a:hover : overflow: visible; .

, , .

, :
ul#thumbs a{
display:block;
float:left;
width:100px;
height:100px;
line-height:100px;
overflow:hidden;
position:relative;
z-index:1;
}
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
, . overflow hidden . top left , «» . .
ul#thumbs a img{
float:left;
position:absolute;
top:-20px;
left:-50px;
}
ul#thumbs li#image1 a img{
top:-28px;
left:-55px;
}
ul#thumbs li#image2 a img{
top:-18px;
left:-48px;
}
ul#thumbs li#image3 a img{
top:-21px;
left:-30px;
}
.
.
.
visible , .
ul#thumbs a:hover{
overflow:visible;
z-index:1000;
border:none;
}
, z-index , . , .. , . , .

, , , . . , «» , , :
width1 – ,
width2 – , ( ul#thumbs a )
padding – , , .
left :
Value = (width1 - width2) / 2 + padding top , width height
, ul#thumbs a:hover :
left: -1px; ( border..)
top: -1px;
.
Source: https://habr.com/ru/post/31455/
All Articles