Skip to primary content
Skip to secondary content

Code Bytes

Coding, scripting, configuring, etc.

Main menu

  • Home
  • About

Tag Archives: Firefox

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

Posted on April 19, 2010 by admin
Reply

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.

Posted in Web | Tagged Firefox, html | Leave a reply

Archives

  • January 2023
  • August 2021
  • March 2021
  • June 2015
  • April 2014
  • July 2013
  • January 2013
  • December 2012
  • October 2012
  • July 2012
  • April 2012
  • January 2012
  • December 2011
  • May 2011
  • March 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2009
  • October 2008

Meta

  • Log in
Proudly powered by WordPress