:: Forum >>

FIREFOX: 100% width inside DIV

I couldn't find anything directly addressing this particular issue I'm having.

I have a left navigation DIV (25% page width) floated left and a content DIV (75%) floated right. The problem is, if I set grid width to 100% it resizes to the width of the entire page pushing the content DIV off the right side of the page.

Suggestions? Fixes?

Matt Stone
Tuesday, August 1, 2006
It looks like the width of the parent DIV is not defined. Try setting parent DIV size to a fixed width. If you set it to 100% make sure its parent (or page body) size is defined - you may need to set body size to 100%.

Another suggestion - try max-width instead of (or in addition to) width attribute.
Alex (ActiveWidgets)
Tuesday, August 1, 2006

This topic is archived.

Back to support forum

Forum search