body { font-family: sans-serif; margin: 40px; } section { margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; } .title { padding: 5px 0; } .title h3 { margin: 0; padding: 0; } .title .subtitle { margin: 0; font-size: 14px; color: gray; } .meta { align-self: center; } section.up { background-color: greenyellow; }