Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- <style id="jsbin-css">
- #canvas {
- width: 300px;
- height: 300px;
- background-color: ivory;
- margin: 0 auto;
- box-shadow: 15px 15px 10px gray;
- }#first-row {
- height: 75%;
- width: 100%;
- background-color: brown;
- }
- #big-rectangle {
- height: 100%;
- width: 75%;
- }
- .red {
- background-color: red;
- }
- .right
- {
- float:right;
- }
- #first-divider {
- height: 100%;
- width: 3%;
- }
- .black {
- background-color: black;
- }
- .black {
- float: right;
- }
- #first-column {
- height: 100%;
- width: 22%;
- }
- #second-divider {
- height: 3%;
- width: 100%;
- }
- #first-medium-rectangle {
- height: 48.5%;
- width: 100%;
- }
- #second-medium-rectangle {
- height: 48.5%;
- width: 100%;
- }
- #second-row {
- height: 3%;
- width: 100%;
- }
- #third-row {
- height: 22%;
- width: 100%;
- }
- #last-column {
- height: 100%;
- width: 5%;
- }
- #first-tiny-rectangle {
- height: 45%;
- width: 100%;
- }
- #second-tiny-rectangle {
- height: 45%;
- width: 100%;
- }
- #third-divider {
- height: 10%;
- width: 100%;
- }
- #fourth-divider {
- height: 100%;
- width: 3%;
- }
- #fifth-divider {
- height: 100%;
- width: 3%;
- }
- #wide-rectangle {
- height: 100%;
- width: 67%;
- }
- #small-rectangle {
- height: 100%;
- width: 22%;
- }
- .yellow {
- background-color: yellow;
- }
- .blue {
- background-color: blue;
- }
- </style>
- </head>
- <body>
- <div id="canvas">
- <div id="first-row">
- <div id="big-rectangle" class="red right"></div>
- <div id="first-divider" class="black right"></div>
- <div id="second-row" class="black"></div>
- </div>
- <div id="first-column" class="right">
- <div id="first-medium-rectangle"></div>
- <div id="second-divider" class="black"></div>
- <div id="second-mediumdiv" id="last-rectangle"></div>
- <div id="third-row">
- <div id="last-column" class="right">
- <div id="first-tiny-rectangle"></div>
- <div id="third-divider" class="black"></div>
- <div id="second-tiny-rectangle" class="yellow"></div>
- </div>
- <div id="fourth-divider" class="black right"></div>
- <div id="wide-rectangle" class="right"></div>
- <div id="fifth-divider" class="black right"></div>
- <div id="small-rectangle" class="blue right"></div>
- </div>
- </html>
- <script id="jsbin-source-css" type="text/css">#canvas {
- width: 300px;
- height: 300px;
- background-color: ivory;
- margin: 0 auto;
- box-shadow: 15px 15px 10px gray;
- }#first-row {
- height: 75%;
- width: 100%;
- background-color: brown;
- }
- #big-rectangle {
- height: 100%;
- width: 75%;
- }
- .red {
- background-color: red;
- }
- .right
- {
- float:right;
- }
- #first-divider {
- height: 100%;
- width: 3%;
- }
- .black {
- background-color: black;
- }
- .black {
- float: right;
- }
- #first-column {
- height: 100%;
- width: 22%;
- }
- #second-divider {
- height: 3%;
- width: 100%;
- }
- #first-medium-rectangle {
- height: 48.5%;
- width: 100%;
- }
- #second-medium-rectangle {
- height: 48.5%;
- width: 100%;
- }
- #second-row {
- height: 3%;
- width: 100%;
- }
- #third-row {
- height: 22%;
- width: 100%;
- }
- #last-column {
- height: 100%;
- width: 5%;
- }
- #first-tiny-rectangle {
- height: 45%;
- width: 100%;
- }
- #second-tiny-rectangle {
- height: 45%;
- width: 100%;
- }
- #third-divider {
- height: 10%;
- width: 100%;
- }
- #fourth-divider {
- height: 100%;
- width: 3%;
- }
- #fifth-divider {
- height: 100%;
- width: 3%;
- }
- #wide-rectangle {
- height: 100%;
- width: 67%;
- }
- #small-rectangle {
- height: 100%;
- width: 22%;
- }
- .yellow {
- background-color: yellow;
- }
- .blue {
- background-color: blue;
- }
- </script>
Add Comment
Please, Sign In to add comment