Advertisement
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">
- <link rel="stylesheet" href="style.css">
- <title>ObrazMondriana</title>
- <style id="jsbin-css">
- #canvas {
- width: 400px;
- height: 400px;
- background-color: white;
- margin: auto;
- box-shadow: 15px 15px 10px black;
- border:groove 10.5px black;
- }
- #first-row {
- height: 75%;
- width: 100%;
- }
- #big-rectangle {
- height: 100%;
- width: 75%;
- }
- #first-divider{
- height: 100%;
- width: 3%;
- }
- #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%;
- background-color: beige;
- }
- #last-column{
- height: 100%;
- width: 15%;
- }
- #third-medium-rectangle{
- height: 45%;
- width: 100%;
- }
- #third-divider{
- height: 10%;
- width: 100%;
- }
- #four-medium-rectangle{
- height: 45%;
- width: 100%;
- }
- #four-row{
- height: 100%;
- width: 3%;
- }
- #second-big-rectangle{
- height: 100%;
- width: 56.7%;
- }
- #four-divider{
- height: 100%;
- width: 3%;
- }
- #small-left-rectangle{
- height: 100%;
- width: 22.3%;
- }
- /* colors */
- .red{
- background-color: red;
- }
- .black{
- background-color: black;
- }
- .yellow{
- background-color: yellow;
- }
- .blue{
- background-color: blue;
- }
- /*positions*/
- .right{
- float: right;
- }
- </style>
- </head>
- <body>
- <div id="canvas">
- <div id="first-row">
- <div id="big-rectangle" class="red right"></div>
- <div id="first-divider" class="right black"></div>
- <div id="first-column" class="right">
- <div id="first-medium-rectangle"></div>
- <div id="second-divider" class="black"></div>
- <div id="second-medium-rectangle"></div>
- </div>
- </div>
- <div id="second-row" class="black"></div>
- <div id="third-row">
- <div id="last-column" class="right">
- <div id="third-medium-rectangle"></div>
- <div id="third-divider" class="black"></div>
- <div id="four-medium-rectangle" class="yellow"></div>
- </div>
- <div id="four-row" class="right black"></div>
- <div id="second-big-rectangle" class="right yellow"></div>
- <div id="four-divider" class=" right black"></div>
- <div id="small-left-rectangle" class="blue"></div>
- </div>
- </div>
- <script id="jsbin-source-css" type="text/css">
- #canvas {
- width: 400px;
- height: 400px;
- background-color: white;
- margin: auto;
- box-shadow: 15px 15px 10px black;
- border:groove 10.5px black;
- }
- #first-row {
- height: 75%;
- width: 100%;
- }
- #big-rectangle {
- height: 100%;
- width: 75%;
- }
- #first-divider{
- height: 100%;
- width: 3%;
- }
- #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%;
- background-color: beige;
- }
- #last-column{
- height: 100%;
- width: 15%;
- }
- #third-medium-rectangle{
- height: 45%;
- width: 100%;
- }
- #third-divider{
- height: 10%;
- width: 100%;
- }
- #four-medium-rectangle{
- height: 45%;
- width: 100%;
- }
- #four-row{
- height: 100%;
- width: 3%;
- }
- #second-big-rectangle{
- height: 100%;
- width: 56.7%;
- }
- #four-divider{
- height: 100%;
- width: 3%;
- }
- #small-left-rectangle{
- height: 100%;
- width: 22.3%;
- }
- /* colors */
- .red{
- background-color: red;
- }
- .black{
- background-color: black;
- }
- .yellow{
- background-color: yellow;
- }
- .blue{
- background-color: blue;
- }
- /*positions*/
- .right{
- float: right;
- }</script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement