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
30 changes: 21 additions & 9 deletions layout1/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Layout 1 - Tableau II</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>I love art!</h1>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Layout 1 - Tableau II</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="mainBox">
<div class="bigBox">
<div class="white1Box"></div>
<div class="topBox">
<div class="yellowBox"></div>
<div class="blackBox"></div>
</div>
<div class="right">
<div class="white2Box"></div>
<div class="orangeBox"></div>
</div>
</div>
</div>
</body>
</html>
74 changes: 72 additions & 2 deletions layout1/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
h1 {
color: rebeccapurple;
body {
display: flex;
justify-content: center;
}

.mainBox {
width: 500px;
height: 500px;
background-color: white;
/* justify-content: center; */
outline: auto;
display: flex;
/* align-items: center; */
}

.topBox {
width: 300px;
height: 300px;
background-color: white;
/* justify-content: center; */
outline: auto;
/* align-items: flex-end; */
display: flex;
justify-self: center;
margin: auto;
}

.white1Box {
width: 150px;
height: 50px;
background-color: white;
outline: auto;
align-items: flex-end;
justify-content: right;
}
.yellowBox {
width: 150px;
height: 50px;
background-color: rgb(241, 227, 145);
outline: auto;
align-items: flex-end;
justify-content: right;
}
.blackBox {
width: 100px;
height: 120px;
background-color: black;
outline: auto;
align-items: flex-end;
justify-content: right;
}

.right {
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.white2Box {
width: 50px;
height: 150px;
background-color: white;
outline: auto;

/* justify-content: right; */
}
.orangeBox {
width: 50px;
height: 20px;
background-color: orange;
outline: auto;
align-self: flex-end;
}