Search
 
SCRIPT & CODE EXAMPLE
 

HTML

flex 2 columns per row

.item {
  width: 100%
}

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

.container > div {
  flex: 50%; /* or - flex: 0 50% - or - flex-basis: 50% - */
  /*demo*/
  box-shadow: 0 0 0 1px black;
  margin-bottom: 10px;
}
/////////////html
<div class="container">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
</div>
Comment

PREVIOUS NEXT
Code Example
Html :: html tabulation 
Html :: html link 
Html :: bootstrap 4 vertical align td 
Html :: reactjs white space 
Html :: escape double quotes in html 
Html :: audio tag disable download 
Html :: *ngFor index 
Html :: fav icon html 
Html :: fa fa copy icons 
Html :: write html in python 
Html :: jquery Uncaught ReferenceError: $ is not defined 
Html :: how to change background image in html 
Html :: textarea angular onfocus 
Html :: Html meta responsive viewport metatag 
Html :: html option selected 
Html :: laravel murakkab old 
Html :: boostrap 4 clear input 
Html :: html button with action link 
Html :: how to make a yourbue icon in html 
Html :: html dash code 
Html :: accept method jsf component 
Html :: metaverse 
Html :: html checked 
Html :: html_entity_decode 
Html :: details summary html5 
Html :: html table line break 
Html :: how to use custom domain name instead of localhost on xampp for linux 
Html :: info symbol text 
Html :: django template variable remove all spaces 
Html :: table two columns html 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =