"clearfix" for User Summary "top-section"

css

(Dean Taylor) #1

Personally I’ve added the following to custom CSS to allow me to style it correctly:

@import "common/foundation/mixins";
.container .user-table .top-section {
    @include clearfix();
}

(Jeff Atwood) #2

Wait what is the bug here?


(Dean Taylor) #3

The top-section div height should extend to the bottom of the two lists (top replies and top topics), i.e. the height of its content.

Not doing so:

  • can cause weird browser content placement depending on browser, version etc.
  • which is not worth the time in testing - easier just to put the clearfix in.
  • makes it difficult to style (i.e. add a background colour behind that section)

(Régis Hanol) #4

I agree, just pushed the fix :thumbsup:


(Régis Hanol) #5