CSS: The All-Expandable Box

Posted by admin in Design Tutorials, CS... | 12.07.2007 - 2:42 pm

by: Chris Coyier

In HTML, if you don’t specify a specific width, block-level elements are vertically expandable by their nature. Think of an unordered list. That list will grow be be as big as it needs to be to fit all of it’s list elements. If a user increases the font size in their browser, the list will expand vertically, growing to fit the larger content. Sometimes it feels like vertical-only expansion is limiting and it would be nice if the element could grow horizontally as well as vertically with a font size increase by the user.

View Demo Expandable Box

Download Demo ZIP (more…)

Original post by chris

  1. CSS
  2. Design Tutorials

Related Posts:
  • No related posts

  • No Comments on "CSS: The All-Expandable Box" »

    No comments yet.

    Leave a comment