Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css flex gap between items

/* limited support (Q1/2021: Firefox, Chrome, Safari) */
.flex-container
{
  display: flex;
  gap: 5px;
}

/* broad support */
.flex-item
{
  margin: 5px;
  /* and/or */
  padding: 5px;
}
Comment

flex margin between items

/* limited support (Q1/2021: Firefox, Chrome, Safari) */
.flex-container
{
  display: flex;
  gap: 5px;
}
Comment

gap between two flex items

.upper
{
  margin:30px;
  display:flex;
  flex-direction:row;
  width:300px;
  height:80px;
  border:1px red solid;

  padding:5px; /* this */
}

.upper > div
{
  flex:1 1 auto;
  border:1px red solid;
  text-align:center;

  margin:5px;  /* and that, will result in a 10px gap */
}

.upper.mc /* multicol test */
{flex-direction:column;flex-wrap:wrap;width:200px;height:200px;}
Comment

PREVIOUS NEXT
Code Example
Css :: how to justify grid childe in the center 
Css :: add font css 
Css :: left and right box shadow only 
Css :: how to add inline class to a paragraph in css 
Css :: css jagged edges 
Css :: how to center an element in css 
Css :: text-align:center apply to parent div or child div 
Css :: linux bash sort folders ascending 
Css :: padding shorthand 
Css :: electron draggable 
Css :: make button stretch to fit text 
Css :: rgb gold color 
Css :: html5 input required length 
Css :: css flex responsive 
Css :: how to prevent select image in css 
Css :: bulma capitalized 
Css :: increase font size zenity 
Css :: make element float on top 
Css :: sass watch in all your project automatically 
Css :: css linear gradient 
Css :: fill and no repeat background image css 
Css :: set border only left and right css 
Css :: background image blur css codepen 
Css :: how to scale a bg image acc to size of div 
Css :: close icon css 
Css :: width css property 
Css :: repeating-linear-gradient generator 
Css :: first child css in material ui 
Css :: css dropdown menu with scrollbar 
Css :: css align backround image to the right 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =