Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

flex one whole width

.flexContainer {
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.item:first-child {
  flex: 1 1 100%;
  margin-bottom: 20px;
}

.item {
  flex: 1 1 40%;
  height: 50px;
  background-color: red;
  margin: 0 20px;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flex #width
ADD COMMENT
Topic
Name
5+2 =