Files
Course/Web/test5/public/index.css

70 lines
950 B
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background-color: #000000b9;
height: 80px;
text-align: center;
line-height: 80px;
font-size: 32px;
color: white;
}
.main {
background-color: blue;
overflow: hidden;
flex: 1;
display: flex;
flex-direction: row;
}
.main nav {
background-color: cadetblue;
float: left;
width: 206px;
}
.main .content {
background-color: antiquewhite;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.clearfixed::after {
content: "";
height: 0;
display: block;
clear: both;
visibility: hidden;
}
.main img {
width: 580px;
border-radius: 10px;
}
.content button {
margin-top: 20px;
margin-right: 20px;
padding: 5px;
}
footer {
height: 40px;
background: gray;
text-align: center;
line-height: 40px;
}