How to prevent divs with a set width but no content from being collapsed

Posted: April 19th, 2010 | Author: | Filed under: Web | Tags: , | No Comments »

When rendered by Firefox, a div with no content is collapsed even if it has a width set.
A simple way to fix this is to insert   (the html code for space) into the div and Firefox will
regard it has having content and render it according to the width property.

Leave a Reply