Home > Web Front-end > HTML Tutorial > css two divs in one row solution_html/css_WEB-ITnose

css two divs in one row solution_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:30:03
Original
1248 people have browsed it

To make two divs in one line, you have to use float or set the sum of the total width to be equal to the small and large divs

<style type="text/css教程"><!--.onediv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#ff0000}.twodiv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#99cc00}--></style> <div class="onediv"></div><div class="twodiv"></div>
Copy after login


From: http://www.111cn.net/cssdiv/css/36717.htm

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