Home > Article > Web Front-end > Implementing two DIVs side by side in CSS_html/css_WEB-ITnose
Css allows two DIVs to be placed side by side and scaled automatically
#Div0 |
{ |
float:left; background-color:Blue; width:100%; height:180px; |
} |
#Div1 |
{ |
float:left; background-color:Blue; width:70%; height:180px; |
} |
#Div2 |
{ |
background-color: Green; width:30%;height:180px; float:right; |
} |