You are floating .count
so it doesn’t influence it’s parent container’s height.
Set overflow: hidden
on the parent (.commentbox
) or use one of the other float containing techniques so that it does.
More Related Contents:
- How to align a to the middle (horizontally/width) of the page [duplicate]
- Advantages of using display:inline-block vs float:left in CSS
- Child inside parent with min-height: 100% not inheriting height
- Select elements by attribute in CSS
- How to prevent long words from breaking my div?
- How can I center into a div?
- Canvas has white space at the bottom and scrolls too far
- How to make a floated div 100% height of its parent?
- Disable webkit’s spin buttons on input type=”number”?
- How do I force a DIV block to extend to the bottom of a page even if it has no content?
- How to make fixed header table inside scrollable div?
- Is it valid to have paragraph elements inside of a heading tag in HTML5 (P inside H1)?
- Two divs, one fixed width, the other, the rest
- blur of part of Background image with css
- Make outer div be automatically the same height as its floating content
- Remove “whitespace” between div element
- Make HTML5 video poster be same size as video itself
- How to align a div to the top of its parent but keeping its inline-block behaviour?
- How to get Floating DIVs inside fixed-width DIV to continue horizontally?
- CSS text ellipsis when using variable width divs
- HTML / CSS Popup div on text click [closed]
- Custom tags… why not?
- How to push a footer to the bottom of page when content is short or missing?
- There is a 4px gap below canvas/video/audio elements in HTML5
- Style lower and upper fill in HTML5 range input
- How can I align 3 divs side by side?
- Phonegap + Windows Phone 8 : viewport meta & scaling issue
- Canvas is stretched when using CSS but normal with `width` & `height` attributes
- 100% DIV width is not really 100%
- using a div to blur an image behind it? [duplicate]