Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions layout1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,44 @@
</head>
<body>
<h1>I love art!</h1>

<div class="container">
<div class="bigleftdiv">
<div class="topleftdiv">
<div class="supertopleft1">
</div>
<div class="supertopleft2">
</div>
</div>
<div class="middleleftdiv">

<div class="leftleftdiv">
<div class="superleftdiv1">

</div>
<div class="superleftdiv2">

</div>
</div>
<div class="leftrightdiv">

</div>
</div>
<div class="bottomleftdiv">

</div>
</div>

<div class="bigrightdiv">
<div class="toprightdiv">
</div>
<div class="middlerightdiv">
</div>
<div class="bottomrightdiv">
</div>
</div>

</div>

</body>
</html>
114 changes: 114 additions & 0 deletions layout1/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,117 @@
h1 {
color: rebeccapurple;
}

div {
border: 2px solid black;
}

.container {
width: 500px;
height: 500px;
margin: auto;
display: grid;
grid-template-areas: "bigleftdiv bigrightdiv";
grid-template-columns: 1fr 100px;
}

.bigleftdiv {
display: grid;
grid-area: bigleftdiv;
background-color: lightgrey;
grid-template-areas: "topleftdiv"
"middleleftdiv"
"bottomleftdiv";
grid-template-rows: 45px 1fr 110px;
}

.topleftdiv {
grid-area: "topleftdiv";
background-color: lightgrey;
display: grid;
grid-template-areas: "supertopleft1 supertopleft2";
grid-template-columns: 200px 1fr;
}

.supertopleft1 {
grid-area: "supertopleft1";
background-color: lightgrey;
}

.supertopleft2 {
grid-area: "supertopleft2";
background-color: yellow;
}

/* .middleleftdiv {
grid-area: "middleleftdiv";
background-color: rebeccapurple;
display: grid;
grid-template-areas: "leftleftdiv"
"leftrightdiv";
grid-template-columns: 100px 1fr;
} */

.middleleftdiv {
display: grid;
grid-template-columns: 40px 1fr;
grid-template-areas: "leftleftdiv leftrightdiv";
}

.leftleftdiv {
grid-area: "leftleftdiv";
background-color: lightgrey;
display: grid;
grid-template-rows: 175px 1fr;
grid-template-areas: "superleftdiv1"
"superleftdiv2";
}

.leftrightdiv {
grid-area: "leftrightdiv";
background-color: lightgrey;
}

.superleftdiv1 {
grid-area: "superleftdiv1";
background-color: lightgrey;
}

.superleftdiv2 {
grid-area: "superleftdiv2";
background-color: blue;
}

.bottomleftdiv {
grid-area: "bottomleftdiv";
background-color: lightgrey;
}

.bigrightdiv {
display: grid;
grid-area: bigrightdiv;
background-color: lightgrey;
grid-template-areas: "toprightdiv"
"middlerightdiv"
"bottomrightdiv";
grid-template-rows: 120px 1fr 30px;
}

.toprightdiv {
grid-area: toprightdiv;
background-color: #393b3f;
}

.middlerightdiv {
grid-area: middlerightdiv;
background-color: lightgrey;
}

.bottomrightdiv {
grid-area: bottomrightdiv;
background-color: red;
}

.container {
border: 0px;
}
51 changes: 51 additions & 0 deletions layout2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,56 @@
</head>
<body>
<h1>I love art!</h1>
<div class="container">
<div class="bigleftdiv">
<div class="topleftdiv">
<div class="supertopleft1">

</div>
<div class="supertopleft2">

</div>
</div>
<div class="bottomleftdiv">
<div class="bottomleftleft">
<div class="bottomtopleft">

</div>
<div class="bottombottomleft">

</div>
</div>
<div class="bottomleftright">

</div>
</div>
</div>
<div class="bigrightdiv">
<div class="toprightdiv">

</div>
<div class="middlerightdiv">
<div class="leftmiddleright">
<div class="leftmiddlerighttop">

</div>
<div class="leftmiddlerightbottom">

</div>
</div>
<div class="rightmiddleright">

</div>
</div>
<div class="bottomrightdiv">
<div class="leftbottomright">

</div>
<div class="rightbottomright">

</div>
</div>
</div>
</div>
</body>
</html>
140 changes: 140 additions & 0 deletions layout2/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,143 @@
h1 {
color: rebeccapurple;
}

div {
border: 2px solid black;
}

.container {
width: 460px;
height: 720px;
margin: auto;
background-color: lightgrey;
display: grid;
grid-template-columns: 130px 1fr;
grid-template-areas: "bigleftdiv bigrightdiv";
border: 0px;
}

.bigleftdiv {
grid-area: "bigleftdiv";
background-color: lightgrey;
display: grid;
grid-template-rows: 420px 1fr;
grid-template-areas: "topleftdiv"
"bottomleftdiv";
}

.topleftdiv {
grid-area: "topleftdiv";
background-color: lightgrey;
display: grid;
grid-template-rows: 70px 1fr;
grid-template-areas: "supertopleft1"
"supertopleft2";
}

.supertopleft1 {
grid-area: "supertopleft1";
background-color: black;
}

.supertopleft2 {
grid-area: "supertopleft2";
background-color: lightgrey;
}

.bottomleftdiv {
grid-area: "bottomleftdiv";
background-color: lightgrey;
display: grid;
grid-template-columns: 40px 1fr;
grid-template-areas: "bottomleftleft bottomleftright";
}

.bottomleftleft {
grid-area: "bottomleftleft";
background-color: lightgrey;
display: grid;
grid-template-rows: 50px 1fr;
grid-template-areas: "bottomtopleft"
"bottombottomleft";
}

.bottomtopleft {
grid-area: "bottomtopleft";
background-color: black;
}

.bottombottomleft {
grid-area: "bottombottomleft";
background-color: yellow;
}

.bottomleftright {
grid-area: "bottomleftright";
background-color: lightgrey;
}

.bigrightdiv {
grid-area: "bigrightdiv";
background-color: lightgrey;
display: grid;
grid-template-rows: 300px 300px 1fr;
grid-template-areas: "toprightdiv"
"middlerightdiv"
"bottomrightdiv";
}

.toprightdiv {
grid-area: "toprightdiv";
background-color: red;
}

.middlerightdiv {
grid-area:"middlerightdiv";
background-color: lightgrey;
display: grid;
grid-template-columns: 1fr 15px;
grid-template-areas: "leftmiddleright rightmiddleright";
}

.leftmiddleright {
grid-area: "leftmiddleright";
background-color: lightgrey;
display: grid;
grid-template-rows: 120px 1fr;
grid-template-areas: "leftmiddlerighttop"
"leftmiddlerightbottom";
}

.leftmiddlerighttop {
grid-area: "leftmiddlerighttop";
background-color: lightgrey;
}

.leftmiddlerightbottom {
grid-area: "leftmiddlerightbottom";
background-color: lightgrey;
}

.rightmiddleright {
grid-area: "rightmiddleright";
background-color: lightgrey;
}

.bottomrightdiv {
grid-area:"bottomrightdiv";
background-color: lightgrey;
display: grid;
grid-template-columns: 250px 1fr;
grid-template-areas: "leftbottomright rightbottomright";
}

.leftbottomright {
grid-area: "leftbottomright";
background-color: lightgrey;
}

.rightbottomright {
grid-area: "rightbottomright";
background-color: darkblue;
}
Loading