Показать сообщение отдельно
  #5 (permalink)  
Старый 02.12.2016, 09:01
Аватар для ksa
ksa ksa вне форума
CacheVar
Отправить личное сообщение для ksa Посмотреть профиль Найти все сообщения от ksa
 
Регистрация: 19.08.2010
Сообщений: 14,124

Типа такого...

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
   
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"> </script>
</head>
<style type="text/css">
    
.blockPhotos{
    margin: 1%;
    border: 1px solid black;
    width: 650px;
    height: 900px;
   
}
.boxPhoto{
    margin: 1% 2%;
    width: 600px;
    height: 859px;
filter: grayscale(1);
    border: 1px solid black;
    cursor: pointer;
}
.fullGate{
    position: absolute;
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
 filter: grayscale(0);
    border: 1px solid black;
}
.ph_1{
    background: url('https://github.com/BlackStar1991/Pictures-for-sharing-/blob/master/Scarlett_Johansson.jpg?raw=true') no-repeat 50% 50%;
}
.icon{
    position: absolute;
    top: 70%;
    left: 0%;
    width: 256px;
    height: 256px;
    background: url('https://raw.githubusercontent.com/BlackStar1991/Pictures-for-sharing-/master/ScarlettJohansson.png') no-repeat 50% 50%;
    filter: grayscale(1);
}
.container {
	position: relative;
	border: 1px solid red;
}
</style>
<body>

<div class="blockPhotos">
    <div class="container">
		<div class="boxPhoto ph_1">
		</div>
		<div class="fullGate">
			<div class="icon"></div>
		</div>
    </div>
</div>
</body>
</html>

С отступами нужно будет поработать...
Ответить с цитированием