User:Vadim/Sandbox1
From CruisersWiki
(Difference between revisions)
Line 1: | Line 1: | ||
<div style=" | <div style=" | ||
+ | position: relative; | ||
width: 600px; | width: 600px; | ||
height: 400px; | height: 400px; | ||
background-color: gray; | background-color: gray; | ||
- | float:right; | + | float:right; |
"> | "> | ||
<div style=" | <div style=" | ||
position: absolute; | position: absolute; | ||
+ | /* overflow: hidden; */ | ||
top: 0px; | top: 0px; | ||
left:0px; | left:0px; | ||
- | width: | + | width: 256px; |
- | height: | + | height: 256px; |
background-color: skyblue; | background-color: skyblue; | ||
">Static</div> | ">Static</div> | ||
Line 17: | Line 19: | ||
top: 0px; | top: 0px; | ||
left:0px; | left:0px; | ||
- | width: | + | width: 256px; |
- | height: | + | height: 256px; |
transform: translate(-20px, -30px); | transform: translate(-20px, -30px); | ||
background-color: pink; | background-color: pink; | ||
">Moved</div> | ">Moved</div> | ||
<div style=" | <div style=" | ||
- | width: | + | position: absolute; |
- | height: | + | top: -10px; |
+ | left:40px; | ||
+ | width: 256px; | ||
+ | height: 256px; | ||
background-color: green; | background-color: green; | ||
">Static</div> | ">Static</div> | ||
</div> | </div> |
Revision as of 10:23, 18 November 2018
Static
Moved
Static