100% height div's, known CSS issue?

Out of context: Reply #8

  • Started
  • Last post
  • 11 Responses
  • raf0

    Have you ever heard that CSS sucked?

    You just discovered one of the fundamental reasons it does. CSS was invented by code nerds not designers and it shows right in your problem.

    There isn't a property that tells an element to "auto-expand to the maximum width or height available within parent element".
    Lack of a way to set equal column height is a direct result of that.

    Tables, on the other hand, do auto-stretch.

    Likewise, the most intuitive and logical way to center stuff inside parent element vertically: "vertical-align: middle" does not work within block elements according to CSS rules.

    It does work in table cells though, go figure.

    *ends rant, pops beer open

View thread