Home >Web Front-end >HTML Tutorial >css note 1: How to display two divs side by side_html/css_WEB-ITnose
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>
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~