Home > Web Front-end > HTML Tutorial > css note 1: How to display two divs side by side_html/css_WEB-ITnose

css note 1: How to display two divs side by side_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:27:45
Original
1931 people have browsed it

 1 /*css部分*/ 2 #content1{ 3     float:left; 4 } 5 #content2{ 6     float:left; 7 } 8  9 10 /*html部分*/11 <div id="content1"></div>12 <div id="content2"></div>
Copy after login

I have been exposed to CSS for more than a week and found that CSS is really powerful and outrageous, but I really love and hate the cumbersomeness of various techniques...


This article is about simple control of the position of div blocks. Since I am a beginner in CSS, it is better to record it to prevent forgetting~

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