Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- I'm centered
- <div>
- I'm glued to the centered div
- </div>
- </div>
- div
- {
- background-color: pink;
- width: 300px;
- height: 400px;
- margin: 0 auto;
- position: relative;
- }
- div div
- {
- width: 100px;
- height: 100px;
- background-color: cyan;
- left: -100px;
- top: 0px;
- position: absolute;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement