skip to Main Content

Css – Set "max rows" in grid-template-rows: repeat()

ul { display: grid; grid-template-rows: repeat(4, 2em); grid-auto-flow: column; column-gap: 1em; } li { list-style: none; } <hr> <ul> <li>X</li> <li>X</li> </ul> <hr> <ul> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> <li>Y</li> </ul> </hr> In this code I…

VIEW QUESTION

Html – First Website – messing around but the second column moves down when I add margins (not next to the first column) – don't know how to fix

body { background-color: #040081; font-family: Arial, Helvetica, sans-serif; padding: 50px; box-sizing: border-box; } .header { padding: 20px; background-color: #1612AA; text-align: center; font-family: "Roboto" sans-serif; font-size: 40px; text-shadow: 2px 0 #F36502, -2px 0 #F36502, 0 2px #F36502, 1px 1px #F36502, -1px…

VIEW QUESTION
Back To Top
Search