Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

vertical divider between my flexbox

section {
  display: flex;
  flex-direction: row;
  flex: 1;
  margin: 0 -8px;
  align-items: center;
}
section>* {
  margin: 0 8px;
}
.divider {
  width: 2px;
  margin: 6px 0;
  background: blue;
  align-self: stretch;
}
.item {
  flex: 1;
  background: orange;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vertical #divider #flexbox
ADD COMMENT
Topic
Name
1+8 =