Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Flex Container

.flex-container {
  display: flex;
}
Comment

display:flex

display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
Comment

display flex css

.flex-container {
  display: flex;
  background-color: DodgerBlue;
}

.flex-container > div {
  background-color: #f1f1f1;
  margin: 10px;
  padding: 20px;
  font-size: 30px;
}
/* A Flexible Layout must have a parent element with the
display property set to flex. Direct child elements(s) of
the flexible container automatically becomes flexible items.   */
Comment

css all flex properties

.item {
  flex-basis:  | auto; /* default auto */
}
Comment

display flex css

.class {
  display: flex;
}

/* use display: flex to turn CSS element into a flexbox */
Comment

display:flex

section {
  display: flex;
}
Comment

css flex

.header,
.footer  { flex: 1 100%; }
.sidebar { flex: 1; }
.main    { flex: 2; }
Comment

css flex

.even-col > *{width: 100%;}
Comment

css flex

<style>
    .flex-container{
        display: flex;
    }
    .flex-item{
        padding:10px;
        border: 1px solid #ccc; 
        margin: 5px
    }
</style>

<div class="flex-container">    
    <div class="flex-item">Item 1 is quite long<div>    
    <div class="flex-item">Item 2<div>    
    <div class="flex-item">Item 3<div>    
    <div class="flex-item">Item 4<div>    
</div>
Comment

PREVIOUS NEXT
Code Example
Css :: image css in box 
Css :: text overlay animation css 
Css :: add title to slider 
Css :: html css drow line 
Css :: div with specific id css 
Css :: drop down css 
Css :: button with background image and text html css 
Css :: css active button 
Css :: css masking 
Css :: css 4 3 ratio 
Css :: media query css file 
Css :: css light mode 
Css :: css template 
Css :: input disabled css 
Css :: github lottie 
Css :: td min-height not working 
Css :: react use global css classes 
Css :: bootstrap-navbar-brand 
Css :: como tirar a sidebar css 
Css :: css aplying everything 
Css :: daphne vs gunicorn 
Css :: numpy not installling 
Css :: react css change number animation 
Css :: light grey border css 
Css :: css background image is not show change default picture 
Css :: html css limit page to a4 
Css :: inline element not take padding why? 
Css :: responsive web design with html5 and css: develop future-proof responsive websites using the latest html5 and css techniques 
Css :: css loading spinner with text 
Css :: 1 412 779 in words 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =