1
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div class="box">
<div class="prisoner">o</div>
</div>
</body>
</html>
CSS:
.box {
width: 200px;
height: 100px;
background-color: #ccc;
position: relative;
overflow: hidden;
}
.prisoner {
width: 10px;
height: 10px;
background-color: #fa0;
position: absolute;
top: -10px;
}
In this case, it would be possible to make the Prisoner visible (when exceeding the limits of the div box), even if it is inside an overflow Hidden?
Related: https://answall.com/q/268987/8063
– Sam