html - How to code yellow square, horizontal and vertical line in Step 10 in Make Your Own Mondrian Coder Project? -


i have been trying code coder project called make own mondrian found here: coder projects

in step 10, if click on link, asks code bottom row of mondrian art. coded left part blue box in bottom row. having trouble coding rest right part in bottom row. have coded far:

html:

<body style="background-color:#f6f6f6;">     <div id="painting">         <div id="toprow">             <div id="bigbox" class="red right"></div>             <div id="divider1" class="black right"></div>             <div id="topleftcolumn" class= "right">             <div class="mediumbox"></div>             <div id="divider2" class= "black"></div>             <div class="mediumbox"></div>          </div>       <div id="painting">         <div id="middlerow">             <div id="topleftcolumn" class= " blue right">                 <div id="divider3" class= "black"></div>                 <div class="mediumbox1"></div>             </div>         </div>      </div>           <div id="painting">          <div id="middlerow" class= "left blue">              <div id="bottomleftcolumn" class= "left">                  <div id="divider4" class= "black right"></div>                  <div class="mediumbox1"></div>              </div>          </div>      </div>       <div id="painting">          <div id="middlerow" class= "right">              <div id="smallbox" class="red right"></div>              <div id="bottomrightcolumn" class= "right">                  <div id="divider4" class= "black left"></div>                  <div class="mediumbox2"></div>              </div>          </div>      </div> </body>     

css:

#painting {     background-color: #fff4db;     width: 400px;     height: 400px;     margin-top: 30px;     margin-left: auto;     margin-right: auto;     box-shadow: 10px 10px 0px #8d8d8d; }  `red {     background-color: red;    } .blue {     background-color: blue;  } .yellow {     background-color: yellow;    } .black {     background-color: black;    }`.  #toprow {     height: 290px;     background-color: #fff4db }  #bigbox {     width: 290px;     height: 290px; }  #divider1 {     height: 290px;     width: 10px; }  .mediumbox {     width: 100px;     height: 140px; } #divider2 {     height: 10px;     width: 100px; }  .right {     float: right; }  .left{     float: left; }  #divider3 {     height: 10px;     width: 400px; }  #divider4 {     height: 105px;     width: 10px; }  #topleftcolumn {         height:5px; }  #bottomleftcollum {     height:5px; }  .mediumbox1 {     width: 109px;     height: 105px; }  .mediumbox2 {     width: 45px;     height: 105px; }  .mediumbox3 {     width: 45px;     height: 20px; }  #divider5 {     height: 105px;     width: 10px;  } 

you can few things, did floats since trying do:

// html  <head> <link rel="stylesheet" type="text/css" href="main.css"> </head> <body> <div class="container"> <div class="top-left"></div> <div class="top-right"></div> <div class="clear"></div> <div class="buttom-left"></div> <div class="buttom-midle"></div> <div class="buttom-rigth">     <div class="buttom-left-in-top"></div>     <div class="buttom-left-in-buttom"></div> </div> </div> </body> </html>  // , css:  .top-left{  float:left;  background-color:#fff4d8;    width:20%;  height:calc(50vh - 40px);  border: 10px solid #353535;  }  .top-right{  float:right;  background-color:#eb002b;    width:calc(80% - 40px);  height:calc(50vh - 40px);  border: 10px solid #353535;  } .buttom-left{ float: left; width:20%; height: calc(50vh - 40px); border: 10px solid #353535; background-color: #007bd8; } .buttom-midle { float: left; width:65%; height: calc(50vh - 40px); border: 10px solid #353535; background-color: #fff4d8; } .buttom-rigth{ float: right; height: calc(50vh - 40px); width: calc(100% - 20% - 65% - 60px); border: 10px solid #353535; } .buttom-left-in-top{ width:100%; height: calc(50% - 10px); background-color: #fff4d8; border-bottom: 10px solid #353535; } .buttom-left-in-buttom{ width:100%; height: calc(50% - 10px); background-color: #ffd600; border-top: 10px solid #353535; } .clear { clear:both; } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -