Implementing two DIVs side by side in CSS_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:27:21
Original
1946 people have browsed it

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;

           

        }
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template