added old data
This commit is contained in:
19
proj1/index.html
Normal file
19
proj1/index.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="styleB.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="flex-container">
|
||||
<div id="a"><p>A</p></div>
|
||||
<div id="b"><p>B</p></div>
|
||||
<div id="c"><p>C</p></div>
|
||||
<div id="d"><p>D</p></div>
|
||||
<div id="e"><p>E</p></div>
|
||||
<div id="f"><p>F</p></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
40
proj1/styleA.css
Normal file
40
proj1/styleA.css
Normal file
@@ -0,0 +1,40 @@
|
||||
.flex-container {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
/* width: 100vh; */
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.flex-container div {
|
||||
flex-direction: column;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
border-top: 1px solid #687291;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.flex-container div:nth-child(even) {
|
||||
background-color: #eeeff2;
|
||||
}
|
||||
|
||||
.flex-container div:nth-child(odd) {
|
||||
background-color: #dfe1e7;
|
||||
}
|
||||
|
||||
.flex-container div:nth-last-child(1) {
|
||||
background-color: #687291;
|
||||
border: 4px solid #000000;
|
||||
}
|
||||
div p {
|
||||
font-size: 40px;
|
||||
font: Tahoma;
|
||||
text-align: center;
|
||||
/* vertical-align: text-top; */
|
||||
}
|
||||
|
||||
div#f p {
|
||||
|
||||
text-align: center;
|
||||
vertical-align: -webkit-baseline-middle;
|
||||
}
|
35
proj1/styleB.css
Normal file
35
proj1/styleB.css
Normal file
@@ -0,0 +1,35 @@
|
||||
.flex-container {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
/* width: 100vh; */
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.flex-container div {
|
||||
height: 150px;
|
||||
width: 100px;
|
||||
min-width: 100px;
|
||||
border-left: 10px dotted #d0d0ff;
|
||||
margin: 10px;
|
||||
background: #eeeff2;
|
||||
color: #000000;
|
||||
}
|
||||
.flex-container div:hover {
|
||||
background: yellow;
|
||||
color: goldenrod;
|
||||
|
||||
}
|
||||
|
||||
.flex-container div:nth-last-child(1) {
|
||||
align-self: end;
|
||||
margin: 0px 0px 0px auto;
|
||||
}
|
||||
div p {
|
||||
font-size: 40px;
|
||||
font: Tahoma;
|
||||
margin: 10px;
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user