2016-04-03 13 views

cevap

1

kaptan düşüyor:

html,body{ 
    height:100%; /*Having 100% stretches your content, try removing height:100%; and see the difference*/ 
} 

.parent{ 
    padding:10px; 
    background:#888; 
    display:flex; 
    flex-wrap:wrap; /*Using flex-wrap:wrap will wrap your second div class to the next line*/ 
    flex:1 0 auto; 
} 

.col1{ 
    background:yellow; 
} 

.col2{ 
    background:lightgreen; 
} 
İlgili konular