Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

i just followed the instruction on the css flexbox tutorial on youtube. and i got stuck on align content help me fix the gap problems [closed]

$
0
0

i just followed the instruction on the tutorial on [youtube]. and i got stuck on align content. i already tried other align-content like flex-end, flex-start but result don't change at all

body {    min-height: 800px;    border: 8px solid black;    display: flex;    gap: 20px;    flex-wrap: wrap;    justify-content: center;    align-items: center;    align-content: center;}.box {    height: 200px;    width: 200px;    font-size: 40pt;    background-color: rgb(45, 143, 235);}
<body><h1 class="box">1</h1><h1 class="box">2</h1><h1 class="box">3</h1><h1 class="box">4</h1><h1 class="box">5</h1><h1 class="box">6</h1><h1 class="box">7</h1><h1 class="box">8</h1><h1 class="box">9</h1><body>

i have problem with the gaps. help me correct it

this should be the result


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>