The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Automatically adjust DIV width Re: Automatically adjust DIV width


You can make col_two width: 50% and have no width set for col_one. That way, when there is content for both, it fits nicely, and when you don’t have a col_two, the col_one div will still stretch all the way across.