Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

How to remove the seam between divs in a flex container

$
0
0

.main {
  height: 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
}

.item {
  flex-grow: 1;
  background-color: #0c0c0c;
}
<div class="main"><div class="item"></div><div class="item"></div><div class="item"></div></div>

result image

You can see white seams between divs.

The problem only happens in mobile phone view. Please copy into your text editor and open by chrome and press F12 to toggle to mobile phone view. Stackoverflow snippet doesn't recurrence the problem.


Viewing all articles
Browse latest Browse all 67441

Trending Articles



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