Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

flex one whole width

.flexContainer {
  display: flex;
  flex-wrap: wrap;
}

.item:first-child {
  flex: 1 1 100%;
  height: 100vh;
  width: 300px;
  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
3+4 =