odin-default-css-exercises/flex/flex-layout/solution/solution.css

70 lines
908 B
CSS
Raw Normal View History

2021-08-23 21:24:45 +00:00
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
body {
height: 100vh;
margin: 0;
overflow: hidden;
font-family: Roboto, sans-serif;
}
img {
width: 600px;
}
button {
font-family: Roboto, sans-serif;
border: none;
border-radius: 8px;
background: #eee;
}
input {
border: 1px solid #ddd;
border-radius: 16px;
padding: 8px 24px;
width: 400px;
margin-bottom: 16px;
}
2021-08-24 15:03:48 +00:00
/* SOLUTION */
body {
display: flex;
flex-direction: column;
}
button {
padding: 8px 16px;
}
2021-08-23 21:24:45 +00:00
.content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
a {
color: #666;
text-decoration: none;
}
.header,
.footer {
display: flex;
justify-content: space-between;
padding: 16px;
}
.footer {
background: #eee;
}
ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 16px
}