Python for Power Systems

A blog for power systems engineers to learn Python.

IE7 Bug - Absolute Div Inside Relative Div

This is a short post to document a problem I was having displaying a side bar in Internet Explorer 7.

The side bar contained some text that did not completely fill the space as desired. So I put that text on a absolute div and set the top, bottom and left attributes to stretch it out to completely fill the space. By making the parent container a relative, the absolute position would stick to it, rather than the entire screen.

This is the sidebar content

This is the second sidebar content