I Build Web Sites

Do you need to take your dull website and make it shine? That's what SLiK INTERACTIVE is here to do, offering a range of web design services to meet your internet needs.

  • Mizu
  • Flow Go Riding Center
  • TW's Grille and Bar

Archive for February, 2009

IE6 Bug – DIV Disappears When Window Resizes

In Internet Explorer 6 there’s a bug ( one of many… ) that occurs when you resize the browser window causing an absolute positioned div tag’s contents to disappear. It only returns if you refresh the browser. This usually occurs with background images and on text positioned next to a floated element.

 

After searching for awhile I found this solution which worked best:

 

Turns out if you add a CSS rule of height:1%; to the containing div, the content then shows up like it is supposed to, even after resizing the browser window. Hope this saves someone some valuable searching time!


1
2
3
4
5
6
7
 #container_div{
     height:1%;
} 
 
#inner_div{
     position:absolute;
}