treehouse : what would you like to learn today?
Web Design Web Development iOS Development

centering floating n divs?

  • hi, is the following possible?

    the parent div is set to height: 50px; (width: 100%) and overflow: hidden;

    inside are horizontally floated divs. is it possible to make them horizontally centered, even when the window's size changes and the overflow kicks in and some divs become hidden? :oops:


    demo: http://img157.imageshack.us/img157/5001/demoak5.th.gif

    thanks!