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
20 changes: 19 additions & 1 deletion layout1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>
<h1>Tableau II - CSS Grid</h1>
<!-- Steve's Code -->
<div id="composition">
<div id="left">
<div id="l-top">
<div id="lt-topleft"></div>
<div id="lt-topright"></div>
<div id="lt-sidetop"></div>
<div id="lt-sidebottom"></div>
<div id="lt-main"></div>
</div>
<div id="l-bottom"></div>
</div>
<div id="right">
<div id="r-top"></div>
<div id="r-mid"></div>
<div id="r-bottom"></div>
</div>
</div>
</body>
</html>
88 changes: 87 additions & 1 deletion layout1/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,89 @@
h1 {
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: rebeccapurple;
margin: auto;
text-align: center;
}

/*Steve's Code*/
#composition {
width: 40%;
margin: auto;
min-height: 75vh;
display: grid;
grid-gap: 1em;
grid-template-rows: 100%;
grid-template-columns: 1fr 8em;
grid-template-areas: "left right";
border: 1px solid black;
background-color: black;
}

#left {
grid-area: left;
display: grid;
grid-gap: 1em;
grid-template-rows: 1fr 9em;
grid-template-columns: 100%;
grid-template-areas: "l-top"
"l-bottom";
}
#right {
grid-area: right;
display: grid;
grid-gap: 1em;
grid-template-rows: 9em 1fr 2em;
grid-template-columns: 100%;
grid-template-areas: "r-top"
"r-mid"
"r-bottom";
}

#r-top {
grid-area: r-top;
background-color: #222;
}
#r-mid {
grid-area: r-mid;
background-color: white;
}
#r-bottom {
grid-area: r-bottom;
background-color: red;
}

#l-top {
grid-area: l-top;
display: grid;
grid-gap: 1em;
grid-template-rows: 4em 0.5fr 0.5fr;
grid-template-columns: 2em 0.5fr 0.5fr;
grid-template-areas: "lt-topleft lt-topleft lt-topright"
"lt-sidetop lt-main lt-main"
"lt-sidebottom lt-main lt-main"
}
#l-bottom {
grid-area: l-bottom;
background-color: white;
}

#lt-topleft {
grid-area: lt-topleft;
background-color: white;
}
#lt-topright {
grid-area: lt-topright;
background-color: yellow;
}
#lt-sidetop {
grid-area: lt-sidetop;
background-color: white;
}
#lt-sidebottom {
grid-area: lt-sidebottom;
background-color: blue;
}
#lt-main {
grid-area: lt-main;
background-color: white;
}
19 changes: 18 additions & 1 deletion layout4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>
<h1>Composition II in Red, Blue, and Yellow</h1>
<main class="container">
<div class="top-left">
</div>
<div class="mid-left">
</div>
<div class="bot-left">
</div>
<div class="main">
</div>
<div class="bot-mid">
</div>
<div class="bot-rt-top">
</div>
<div class="bot-rt-bot">
</div>
</main>

</body>
</html>
48 changes: 47 additions & 1 deletion layout4/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
h1 {
body {
color: rebeccapurple;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: auto;
text-align: center;
background-color: black;
}

.container {
display: grid;
grid-template-rows: 10em 10em .5fr .5fr;
min-height: 100vh;
grid-template-columns: 10em 1fr 5em;
grid-template-areas: "top-left main main"
"mid-left main main"
"bot-left bot-mid bot-rt-top"
"bot-left bot-mid bot-rt-bot";
width: 60%;
grid-gap: 0.5em;
}

.top-left {
grid-area: top-left;
background-color: beige;
}
.main {
grid-area: main;
background-color: maroon;
}
.mid-left {
grid-area: mid-left;
background-color: beige;
}
.bot-left {
grid-area: bot-left;
background-color: navy;
}
.bot-mid {
grid-area: bot-mid;
background-color: beige;
}
.bot-rt-top {
grid-area: bot-rt-top;
background-color: beige;
}
.bot-rt-bot {
grid-area: bot-rt-bot;
background-color: yellow;
}