html { box-sizing: border-box; overflow-y: scroll; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; } @media screen and (min-width: 700px) { .page { width: 700px; margin: 0 auto; } } @media screen and (max-width: 700px) { .page { width: 100%; } } .header { position: fixed; top: 0; width: inherit; } .line { height: 50px; display: flex; align-items: center; } .line.title { background-color: #333333; color: white; font-size: 18px; height: 60px; } .line.search { width: 100%; padding: 0 15px; border: none; box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.2); font-size: 14px; } .aliments { margin-top: 110px; } .line > * { padding: 15px; } .line > *:nth-child(1) { width: 40%; } .line > *:nth-child(2) { width: 20%; } .line > *:nth-child(3) { width: 20%; } .line > *:nth-child(4) { width: 20%; } .line > .good { color: green; } .line > .medium { color: orange; } .line > .bad { color: red; } .line > .number { text-align: right; } .aliment:nth-child(2n+1) { background-color: #F6F6F6; }