2

I use Chrome and http://www.aaai.org/Conferences/AAAI/aaai13.php for test.

There is a structure like that.

<div class="content">
<div class="right">...</div>
<div class="left">...</div>
</div>

I just have no idea about why the "content" div's size is 940px * 70px which is much smaller than the size of the "right" div and the "left" div.

Sorry for not knowing how to screenshot for this problem

陈家泽
  • 115
  • 1
  • 4

1 Answers1

1

Elements which are floating doesn't use vertical space without clear. You can add empty element with "clear: both"-css to use that vertical space.

See more info from here:

What methods of ‘clearfix’ can I use?

Community
  • 1
  • 1
Antti
  • 1,029
  • 12
  • 15
  • Thank you for your answer. Your answer is right.I have tried that if I put
    then the size of content is bigger than its children nodes.
    – 陈家泽 Nov 14 '14 at 06:38