Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- .box{
- width:128px;
- padding: 60px 0px 60px 12px;
- padding-top:60px;
- padding-bottom:60px;
- padding-left:10px;
- display: inline-block;
- margin-bottom: 4px;
- transition: width 500ms, opacity 500ms;
- }
- .box:hover{
- opacity: 0.75;
- width:160px;
- }
- .red{
- background: #b90000;
- }
- .green{
- background: #4c9c01;
- }
- .blue{
- background: #0081cc;
- }
- .purple{
- background: #4902a7;
- }
- .yellow{
- background: #f3e300;
- }
- .orange{
- background: #ffa600;
- }
- </style>
- </head>
- <body>
- <div class="row">
- <div class="box red">
- 1
- </div>
- <div class="box green">
- 2
- </div>
- <div class="box blue">
- 3
- </div>
- </div>
- <div class="row">
- <div class="box purple">
- 4
- </div>
- <div class="box yellow">
- 5
- </div>
- <div class="box orange">
- 6
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement